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));
            }
        }
Ejemplo n.º 2
0
 public ActionResult <Keep> Delete(int id)
 {
     return(Ok(_kr.DeleteKeepById(id)));
 }
Ejemplo n.º 3
0
 public bool DeleteKeepById(int Id)
 {
     return(_repo.DeleteKeepById(Id));
 }