Ejemplo n.º 1
0
 public async Task Guardar(Siniestro siniestro)
 {
     try
     {
         _contexto.Add(siniestro);
         await _contexto.SaveChangesAsync();
     }
     catch (Exception)
     {
         throw;
     }
 }
 public async Task Guardar(Usuario usuario)
 {
     try
     {
         _contexto.Add(usuario);
         await _contexto.SaveChangesAsync();
     }
     catch (Exception)
     {
         throw;
     }
 }
 public async Task Guardar(Mensaje mensaje)
 {
     try
     {
         _contexto.Add(mensaje);
         await _contexto.SaveChangesAsync();
     }
     catch (Exception)
     {
         throw;
     }
 }
Ejemplo n.º 4
0
 public async Task Guardar(Archivo documentacion)
 {
     try
     {
         _contexto.Add(documentacion);
         await _contexto.SaveChangesAsync();
     }
     catch (Exception)
     {
         throw;
     }
 }