Beispiel #1
0
 public async Task <ActionResult <CartItem> > DeleteByUser(string userid)
 {
     try
     {
         await _cartRepository.DeleteByUser(userid);
     }
     catch (Exception) when(!UserHaveCart(userid))
     {
         return(NotFound());
     }
     return(Ok());
 }