Example #1
0
        internal Side Delete(int id)
        {
            Side sideToDelete = Get(id);

            _repo.Delete(sideToDelete);
            return(sideToDelete);
        }
        internal Side Delete(int id)
        {
            Side burger = Get(id);

            _repo.Delete(burger);
            return(burger);
        }
        internal object DeleteSide(int sideId)
        {
            Side side = GetSideById(sideId);

            _repo.Delete(side);
            return("Deleted");
        }
 public ActionResult <String> Delete(int id)
 {
     try
     {
         return(Ok(_repo.Delete(id)));
     }
     catch (Exception e)
     {
         return(BadRequest(e));
     }
 }