コード例 #1
0
 public async Task <ActionResult <IEnumerable <Servico> > > Get()
 {
     if (db.GetAllServico() == null)
     {
         return(NotFound(new { message = "Dados não Encontrados na base de dados tente mais tarde !!!" }));
     }
     else
     {
         return(db.GetAllServico().ToList());
     }
 }