public ActionResult <IEnumerable <Kitchen> > Get() { try { return(Ok(_repo.GetAll())); } catch (Exception e) { return(BadRequest(e)); } }
public IEnumerable <Kitchen> Get() { return(KitchenRepository.GetAll()); }