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); } }
public void Update(Bill_DomainModel inst) { billRepository.UpdateBill(inst.BillFromDomainToInfra()); }