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(); }