Get/Post Controller Logic Best Practice
- by Brian Mains
In an ASP.NET MVC project (Razor), I have a Get request, which loads two properties on a model, dependent on the property passed into the action method. So if the parameter has a value, the Group property is supplied data. But if not, the Groups collection property is supplied data.
In the post action method, when I process the data, to…