public ActionResult <String> Delete(int id) { try { return(Ok(_bs.Delete(id))); } catch (Exception e) { return(BadRequest(e.Message)); } }
public ActionResult <Burger> Delete(int id) { try { return(Ok(_service.Delete(id))); } catch (Exception e) { return(BadRequest(e.Message)); } }
public ActionResult <string> Delete(string id) { try { return(Ok(_bs.Delete(id))); } catch (System.Exception e) { return(BadRequest(e.Message)); } }
public ActionResult <string> Delete(int burgerId) { try { return(Ok(_burgersService.Delete(burgerId))); } catch (System.Exception err) { return(BadRequest(err.Message)); } }
public ActionResult <string> BuyBurger(int burgerId) { try { _ds.Delete(burgerId); return(Ok("Bought")); } catch (System.Exception err) { return(BadRequest(err.Message)); } }