Пример #1
0
 [HttpDelete("{id}")]                             //keep id
 public ActionResult <string> DeleteKeeps(int id) //keep id
 {
     try
     {
         //REVIEW is this correct?
         string userId = HttpContext.User.FindFirstValue("Id");
         _repository.DeleteKeeps(id); //keep id
         return(Ok("Keep Was Delorted"));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }