public ActionResult <Cart> Create([FromBody] Cart newCart) { try { return(Ok(_cs.Create(newCart))); } catch (Exception e) { return(BadRequest(e.Message)); } }
public ActionResult <Cart> Create([FromBody] Cart newCart) { try { return(Ok(_cs.Create(newCart))); } catch (Exception e) { return(BadRequest(e.Message)); } }