This may be a silly question, but I was just wondering is there a way to have one controller to do the post and the get in umbraco MVC, rather than having two controllers to do this...
and if so are there any disadvantages of doing this.
Simply omit the [HttpPost]/[HttpGet], but you will need to handle Post/Get manually instead. Perhaps consider to call another function from them both if you have some code you must run for both.
One Controller to do the post and get
This may be a silly question, but I was just wondering is there a way to have one controller to do the post and the get in umbraco MVC, rather than having two controllers to do this...
and if so are there any disadvantages of doing this.
Simply omit the [HttpPost]/[HttpGet], but you will need to handle Post/Get manually instead. Perhaps consider to call another function from them both if you have some code you must run for both.
is working on a reply...