Consuming Web API Custom Validation in MVC using RestSharp

I previously wrote a post called Custom Validation in ASP.NET Web API with FluentValidation, in which I showed how my group set up a validation framework over WebAPI using the FluentValidation NuGet package. In this post, we'll go over how to consume those responses in an ASP.NET MVC app, as well as how to take the error messages from the API response and automatically add them to the MVC ModelState. I have updated the sample project on GitHub... Read more >

Exploring the JSON Configuration Files in ASP.NET Core 1.0

As I have mentioned before, my team and I are working on getting up and running with a new ASP.NET Core 1.0 application. I've spent some time with them going over the new JSON-based configuration files like project.json, global.json, and appsettings.json, and now I'm finally at a point where I can write this post. Let's take a look at the three default JSON configuration files in a new ASP.NET Core application, and see what... Read more >

Geocoding with Bing Maps REST Services in .NET

A major project we're working on in my team (which I've alluded to before) requires that we implement geocoding for a given address. This means that, given a valid address, we should have the ability to find that address latitude and longitude coordinates so that we can store those values in our database. Winkel triple projection by Strebe, used under license I've dealt with geocoding before, but never in a .NET server-side application and never using Bing Maps REST services,... Read more >