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