I have tried finding the answer to this and come across several things which have not yielded the desired result.
I have an Event model with a finish_time field and a form checkbox called whenever. When whenever is checked I want to set finish_time to nil regardless of its value in parameters, when whenever is no
I want to know if I can call a method in the controller when a button is clicked. I have a view called home and when the view is loaded, it invokes the Index action method in the controller. I have
All my controllers are based off of a BaseController, to share properties between them and override OnActionExecuting to set some values based on the route.
I have a controller named sales_controller at this controller I got a function in wich I want to: update information about the sale -> DONE
Is there an ASP.NET MVC controller or helper class tha开发者_如何学运维t can automatically return the proper HTTP response based on the HTTP request header? I\'d like it to be able to return JSON, XML
I\'m starting work with PHPUnit with Kohana. My application have many controllers which simply takes data from some form, validates and inserts/updates/deletes into/-/from database. How should I write
When a controller detects that a DTO passed t开发者_如何转开发o it is null should it instantiate an instance of the DTO (cf the Null Object Pattern), or should it simply throw an exception there and t
Every controller class in my project derive from a base controller class, aptly named BaseController.
I\'m having tro开发者_StackOverflowubles reading a Json result back from a controller method... I have this method in my controller: