Ejemplo n.º 1
0
 public static Bill_ViewModel BillFromDomainToView(this Bill_DomainModel @this)
 {
     if (@this != null)
     {
         return(new Bill_ViewModel()
         {
             Id = @this.Id,
             BillNumber = @this.BillNumber,
             BillBalance = @this.BillBalance,
             Client_ViewModelId = @this.Client_DomainModelId,
             //ClientOwnerOfBill = @this.ClientOwnerOfBill.ClientFromDomainToView()
         });
     }
     else
     {
         return(null);
     }
 }
Ejemplo n.º 2
0
 public void Update(Bill_DomainModel inst)
 {
     billRepository.UpdateBill(inst.BillFromDomainToInfra());
 }