public Prato GetId(int id) { return(_context.Prato.Where(PratoEspecificacoes.GetId(id)).FirstOrDefault()); }
public Prato GetPrato(string restaurante, string nome) { return(_context.Prato.Where(PratoEspecificacoes.GetPrato(restaurante, nome)).FirstOrDefault()); }
public Prato GetOne(string nome) { return(_context.Prato.Where(PratoEspecificacoes.GetOne(nome)).FirstOrDefault()); }
public List <Prato> GetAll(string restaurante) { return(_context.Prato.Where(PratoEspecificacoes.GetByRestaurante(restaurante)).OrderBy(x => x.Nome).ToList()); }