Let’s hookup with ASP.NET Webhooks Preview

Webhook – A simple HTTP POST based pub/sub mechanism between web applications or services. This is a very effective that most of the modern web applications use this in order to handle event based pub/sub. ASP.NET WebHooks is a framework which is in the preview release; this eases the task of incorporating webhooks in ASP.NET … Continue reading Let’s hookup with ASP.NET Webhooks Preview

Advertisements

Custom Authorization Filter returns 200 OK during authorization failure in Web API / MVC

This is a very specific and a quick post. In Web APIs sometimes we need to implement custom authorization filter which is extended from AuthorizeAttribute class, this is mainly useful in implementing authorization. The below code shows how to implement an admin authorization in claims based authentication using ClaimsIdentity The above code works perfectly in … Continue reading Custom Authorization Filter returns 200 OK during authorization failure in Web API / MVC

HttpResponseMessage vs IHttpActionResult

In Web API 2 IHttpActionResult is introduced. Read this post which explains the Web API 2 response types and the benefits of IHttpActionResult Assuming you’ve read the above article it is recommended to use IHttpActionResult. Apart from the benefits of clean code and unit testing the main design argument of using IHttpActionResult is the single … Continue reading HttpResponseMessage vs IHttpActionResult

How to create Cascading Dropdowns in Angular JS using Web API

Angular JS is one of the famous and a ‘WoW’ making Javascript frameworks available. https://angularjs.org/ has plenty of learning resources for Angular JS. This post shows how to create cascading drop downs using Angular JS whilst showing the use of other basic features of Angular JS. Angular JS relies heavily on angular directives which HTML extended … Continue reading How to create Cascading Dropdowns in Angular JS using Web API