예제 #1
0
 public async Task UpdateLiq(Liquidacion liquidacion)
 {
     if (_context.Liquidacion.Any(x => (x.Id != liquidacion.Id)))
     {
         throw new AppException("La liquidacion no existe.");
     }
     _context.Update(liquidacion);
     await _context.SaveChangesAsync();
 }