コード例 #1
0
 public ActionResult <Keep> Edit([FromBody] Keep update)
 {
     try
     {
         return(Ok(_ks.EditKeepViews(update)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }
コード例 #2
0
 public ActionResult <Keep> EditKeepViews(int keepId, [FromBody] Keep editedKeep)
 {
     try
     {
         return(Ok(_service.EditKeepViews(editedKeep)));
     }
     catch (System.Exception e)
     {
         return(BadRequest(e.Message));
     }
 }