private void ComputePercentage(int clientId, Deposit entity) { if (entity.ValueType == EValueType.PERCENT) { entity.ComputedPrice = repo.GetCurrentPriceOfTheBooking(entity.Booking.Id, clientId); } }