public ActionResult <Keep> EditKeepCounts(int id, [FromBody] Keep updatedKeep) { try { updatedKeep.Id = id; return(Ok(_ks.EditKeepCounts(updatedKeep))); } catch (Exception e) { return(BadRequest(e.Message)); } }
public ActionResult <Keep> EditKeepCounts(int id, [FromBody] Keep updatedKeep) { try { updatedKeep.Id = id; return(Ok(_ks.EditKeepCounts(updatedKeep))); } catch (Exception e) { return(BadRequest(e.Message)); } }