Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ayo Adesina 430 posts 1023 karma points
    Dec 21, 2012 @ 12:15
    Ayo Adesina
    0

    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.

  • Jonas Eriksson 930 posts 1825 karma points
    Dec 21, 2012 @ 12:17
    Jonas Eriksson
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft