Пример #1
0
 public ActionResult <String> Delete(int vaultId, int keepId)
 {
     try
     {
         var  userId = HttpContext.User.FindFirst(ClaimTypes.NameIdentifier).Value;
         Keep update = _ks.GetById(keepId);
         _vks.DecrementKeepCount(update);
         return(Ok(_vks.Delete(vaultId, keepId)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }