public IActionResult Delete(int id) { try { _repo.DeleteFromCart(id); return(Ok()); } catch (Exception e) { return(Ok(e.InnerException.Message)); } }
public void Delete(int Cartid) { _repo.DeleteFromCart(Cartid); }