Exemple #1
0
 public static Accrual FromAccrualViewModel(AccrualViewModel accrualVM) =>
 new Accrual
 {
     Id            = accrualVM.Id,
     ContractId    = accrualVM.ContractId,
     InvoiceNumber = accrualVM.InvoiceNumber,
     AccrualDate   = accrualVM.AccrualDate,
     Summ          = accrualVM.Summ
 };
 public static GenericAct FromAccrualViewModel(AccrualViewModel accrual) =>
 new GenericAct
 {
     Id          = accrual.Id,
     ContractId  = accrual.ContractId,
     Tenant      = accrual.Tenant,
     Room        = accrual.Room,
     AccrualType = accrual.AccrualType,
     Date        = accrual.AccrualDate,
     Summ        = accrual.Summ,
     IsPayment   = false
 };