Top "Asp.net-mvc-controller" questions

The ASP.

How to get the database context in a controller

I am trying all day to figure out to get the ApplicationDbContext in the ManageController.cs of a default MVC 6 …

c# .net asp.net-core asp.net-core-mvc asp.net-mvc-controller
mvc httppost href parameters

I'm currently working in ASP.NET MVC 4 with EF 4.0. I have an unordered list with listitems. Each listitem contains a …

c# asp.net-mvc c#-4.0 asp.net-mvc-views asp.net-mvc-controller
ASP.NET Web API Routing in ApiController

I've been struggling with my routing for some time now and after a few days of trying to Google the …

asp.net-mvc asp.net-web-api asp.net-web-api-routing asp.net-mvc-controller
ASP.NET MVC: Call one controller action from another, with ActionFilters applied

Take a look at the code below. When Get() calls Foobar() and Foobaz(), the ActionFilters that decorate Foobar() and Foobaz() …

asp.net-mvc action-filter asp.net-mvc-controller
Get an existing session in my BaseController constructor

In my Global.asax, i have this code in the Session_Start() : UserIntranet user = new UserIntranet(); user.Login = this.Request.…

c# asp.net-mvc session asp.net-mvc-controller