private void FillSupplierInformation(ContragentInfoForInvoiceDto supplier) { this.SupplierName = supplier.Name; this.SupplierPersonalNumber = supplier.PersonalNum; this.SupplierVatNumber = supplier.VatNum; this.SupplierTown = supplier.Town; this.SupplierAddress = supplier.Address; this.SupplierPersonForContact = supplier.PersonForContact; }
private void FillClientInformation(ContragentInfoForInvoiceDto client) { this.ClientName = client.Name; this.ClientPersonalNumber = client.PersonalNum; this.ClientVatNumber = client.VatNum; this.ClientTown = client.Town; this.ClientAddress = client.Address; this.ClientPersonForContact = client.PersonForContact; }
public ContragentInfoForInvoiceDto GetClientByIdInvoices(int clientId) { var client = this.bmsData.Contragents.Find(clientId); var clientDto = new ContragentInfoForInvoiceDto { Id = client.Id, Name = client.Name, PersonalNum = client.PersonalIndentityNumber, VatNum = client.PersonalVatNumber, Town = client.Town, Address = client.Address, PersonForContact = client.PersonForContact }; return(clientDto); }