public ActionResult <Keep> Edit([FromBody] Keep update)
 {
     try
     {
         return(Ok(_ks.EditKeepViews(update)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }
Example #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));
     }
 }