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