Shortly after writing my last post I started thinking of better ways to create a DotNet MVC Single Page application. So here it is.
First I tried translating this to Dot Net Core but unfortunately it doesn’t have a method for Request.IsAjaxRequest() and I’m not ninja enough to write my own yet (although I did try) so this example remains in C# Dot Net MVC 4.5.2.