public IActionResult DeleteCartItem(string Cartid) { try { _repo.DeleteCartItem(Cartid); return(Ok()); } catch (Exception e) { return(NotFound(e.InnerException.Message)); } }
public IActionResult DeleteCartItem(string cartid) { try { _repo.DeleteCartItem(cartid); return(Ok()); } catch (Exception ex) { return(NotFound(ex.Message)); } }