ASP.NET Web API 2 ãããã¢ã¯ã·ã§ã³ã®æ»ãå¤ã«ãIHttpActionResult ã¤ã³ã¿ã¼ãã§ã¤ã¹ãæå®ã§ããããã«ãªãã¾ããã ASP.NET MVC ããåãã®æ¹ã«ã¯ããä¼ãããã§ãã â ActionResult ã ASP.NET Web API ã«ããã£ã¦ããï¼âã¨ã ï¼ASP.NET Web API HTTP ã¡ãã»ã¼ã¸ ã©ã¤ããµã¤ã¯ã« ãã¹ã¿ã¼ ã§ããã¨ãã®å³ä¸ã®é¨åãå³ã¯å°ãæãå ãããã®ï¼ public class ValuesController : ApiController { public IHttpActionResult Post() {â¦} } ï¼æ»ãå¤ã« IHttpActionResult ãæå®ã§ãããï¼ ä»ã¾ã§ã¯ãã¢ã¯ã·ã§ã³ã®æ»ãå¤ã¯ä¸è¨ã®å³ã®éãã HttpResponseMessage void ï¼ã¹ãã¼ã¿ã¹ã³ã¼ã 204 ãè¿ã
{{#tags}}- {{label}}
{{/tags}}