public ActionResult <Cart> Update(int id, [FromBody] Cart updatedCart) { try { updatedCart.Id = id; return(Ok(_cs.Edit(updatedCart))); } catch (Exception e) { return(BadRequest(e.Message)); } }