Parsing NewtonSoft JToken Inside WebAPI Call

One of the simplest ways to POST data from a JavaScript app (such as Angular or JQuery) to a Microsoft ASP.NET WebAPI endpoint is simply to post JSON data.  There is a lot of magic that happens to try and match up the POST data you are calling with to the WebAPI call and it often feels like there is no reason why some calls work and some don’t. My experience is that it’s easier to just process generic JSON on the WebAPI side and not worry about the shape of the data until after it arrives on your WebAPI endpoint.  Darrell Miller has a very helpful article that demystifies that data and give a very clear way to get that JSON to your WebAPI endpoint as a NewtonSoft JToken.  Darrel leaves out what to do with the JToken so I thought I’d fill … Continue Reading

My Pluralsight ASP.NET Multi-tenant Course in Top 10

bigcloudheros.png

Two weeks ago my 4th course on Pluralsight released and for the past few days it has been in the top 10.  If you have not had a chance to look at it, check it out.  I’m particularly proud of the introduction which has flying super hero’s! Check it out the intro here And the full course here. … Continue Reading

Showing WebAPI Validation Errors with ExtJS 6

image.png

Let’s say you use model validation with ASP.NET WebAPI and you are serving a client side application written in Sencha’s ExtJS.  To show those errors like this: You need to add a ValidationActionFilter to your startup code as follows: [crayon-572c475785623736814138/] [crayon-572c475785631443024450/] And then, you can have your ExtJS code do something like the following to display the error: [crayon-572c47578563b832866758/] [crayon-572c475785643030453943/] And you can run it yourself at the Sencha Fiddle: HTH's … Continue Reading

A Short Video Tutorial on How To Fade in and out with Adobe Premiere

Check out this short 90 second video on how to add audio fade in and fade out on an instructional video.  I do this on my current video I’m making for Pluralsight on ASP.NET Multi-Tenant coming out soon. … Continue Reading

Follow

Get every new post delivered to your Inbox

Join other followers: