Posts tagged "ASP.NET Web API"

March 31 2016

AngularJS - UTC to Local Date Time Filter

An AngularJS filter to convert UTC time to local time for displaying to the user.
January 28 2015

Unit of Work + Repository Pattern in MVC5 and Web API 2 with Fluent NHibernate and Ninject

After a lot of digging around to figure the best way to implement the Unit of Work + Repository pattern in an ASP.NET MVC 5 or Web API 2 application, I came up with this solution.
December 01 2014

Web API 2 + Angular - Basic HTTP Authentication Example

A simple login example using AngularJS on the front end and ASP.NET Web API 2 on the back end.
July 16 2014

Dynamic LINQ - Using strings to sort by properties and child object properties

I stumbled across the Dynamic LINQ Library today and can't figure out why more people aren't talking about it. It's an awesome little library that allows you to dynamically generate LINQ expressions from strings, which is perfect for things like sorting collections by object property names passed as querystring parameters to web api controllers, it even allows you to sort by child object property names!
May 03 2014

Web API 2 + ELMAH - Log ALL Unhandled Exceptions

I got an email from a client today about an error happening in an application that I'd built with ASP.NET Web API 2.1. At first I thought they must be mistaken or doing something wrong on their end because their weren't any errors being reported by ELMAH which I'd configured in my WebApiConfig.cs file using the ElmahHandleErrorApiAttribute filter.
April 18 2014

Post a simple string value from AngularJS to .NET Web API

How to post a simple string parameter in the body of an HTTP request from AngularJS to ASP.NET Web API
March 14 2014

ASP.NET Web API - elmah.axd 404 error - No HTTP resource was found that matches the request URI 'http://.../elmah.axd'

Fix for ELMAH 404 error "No HTTP resource was found that matches the request URI 'http://.../elmah.axd'"
February 18 2014

ASP.NET Web API 2 - Enum Authorize Attribute

This post shows you how to create a custom authorization attribute which allows you to pass in a list of enums as parameters to restrict access by role. I'm using this attribute on the controllers of a RESTful Web API built with ASP.NET WEB API 2.
October 23 2012

Using MVC 4 Web Api with jQuery DataTables

With the release of ASP.NET MVC 4 and Web Api, creating JSON web services has never been easier, which makes it perfect for populating jQuery DataTables via Ajax.
Sponsored by