コード例 #1
0
 public IActionResult Update([FromForm] CategoryUpsert categoryUpsert)
 {
     return(Ok(new CategoryViewModel(_db, _hostEnvironment).Update(categoryUpsert)));
 }
コード例 #2
0
 public IActionResult Insert([FromForm] CategoryUpsert categoryUpsert)
 {
     return(CreatedAtAction("PostCategory", new CategoryViewModel(_db, _hostEnvironment).Insert(categoryUpsert)));
 }