public async Task <bool> NovoAtendimento(Atendimento atendimento)
 {
     try
     {
         _context.Add(atendimento);
         _context.SaveChanges();
         return(true);
     }
     catch (Exception ex)
     {
         return(false);
     }
 }
Beispiel #2
0
 public async Task <bool> NovoPaciente(Paciente paciente)
 {
     try
     {
         _context.Add(paciente);
         _context.SaveChanges();
         return(true);
     }
     catch (Exception ex)
     {
         return(false);
     }
 }