Exemple #1
0
 public async Task Actualizar(Siniestro siniestro)
 {
     try
     {
         _contexto.Update(siniestro);
         await _contexto.SaveChangesAsync();
     }
     catch (Exception)
     {
         throw new CodigoErrorHttpException($"No se ha podido actualizar el siniestro con id {siniestro.Id}", HttpStatusCode.InternalServerError);
     }
 }
 public async Task Actualizar(Usuario usuario)
 {
     try
     {
         _contexto.Update(usuario);
         await _contexto.SaveChangesAsync();
     }
     catch (Exception)
     {
         throw;
     }
 }