internal Fries Delete(int id) { Fries original = Get(id); _repo.Delete(id); return(original); }
public string Delete(int id) { if (_fr.Delete(id)) { return("Fries thrown away!"); } throw new Exception("Fries still here... <.<"); }
internal string Delete(int id) { var exists = _repo.GetById(id); if (exists == null) { throw new Exception("Invalid Id"); } _repo.Delete(id); return("Successfully Deleted"); }
public void Delete([FromRoute] int id) { _repo.Delete(id); }