public ActionResult <Shoe> Create([FromBody] Shoe newShoe) { try { return(Ok(_ss.Create(newShoe))); } catch (Exception e) { return(BadRequest(e.Message)); } }
public ActionResult <Shoe> Create([FromBody] Shoe newShoe) { try { return(Ok(_bs.Create(newShoe))); } catch (System.Exception err) { return(BadRequest(err.Message)); } }