internal Side Get(int id) { Side burger = _repo.GetById(id); if (burger == null) { throw new Exception("invalid Id"); } return(burger); }
internal Side Get(int id) { Side found = _repo.GetById(id); if (found == null) { throw new Exception("Invalid Side Id"); } return(found); }
public ActionResult <Side> Get(int id) { try { return(Ok(_repo.GetById(id))); } catch (Exception e) { return(BadRequest(e)); } }