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