private void UpdatePropPaySchedule(PropPaySchedule target, PaymentScheduleModel source) { target.PropertyId = source.PropertyId; target.PropertyDocumentTypeId = source.PropertyDocumentTypeId; target.ScheduleDate = source.ScheduleDate.UtcDateTime; target.Description = source.Description; target.Amount1 = source.Amount1; target.Amount2 = source.Amount2; }
private PaymentScheduleModel CreatePaymentScheduleModel(PropPaySchedule source) { var model = new PaymentScheduleModel { PropertyDocumentTypeId = source.PropertyDocumentTypeId, ScheduleId = source.PropPayScheduleId, ScheduleDate = source.ScheduleDate, Description = source.Description, Amount1 = source.Amount1.ToString("N"), Amount2 = source.Amount2.ToString("N") }; return(model); }