public ActionResult <Shoe> Delete(int id) { try { return(Ok(_ss.Delete(id))); } catch (Exception e) { return(BadRequest(e.Message)); } }
public ActionResult <Shoe> Delete(int id) { try { return(Ok(_bs.Delete(id))); } catch (System.Exception err) { return(BadRequest(err.Message)); } }