public ActionResult <Keep> Delete(int id) { try { //FIXME PASS IN THE USERID //NOTE added userId to controller string userId = HttpContext.User.FindFirstValue("Id"); return(Ok(_repo.DeleteKeepById(id, userId))); } catch (Exception e) { return(BadRequest(e.Message)); } }
public ActionResult <Keep> Delete(int id) { return(Ok(_kr.DeleteKeepById(id))); }
public bool DeleteKeepById(int Id) { return(_repo.DeleteKeepById(Id)); }