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