public static BE.BankAccount Clone(this BE.BankAccount original) { BE.BankAccount target = new BankAccount(); target.BankName = original.BankName; target.BranchNumber = original.BranchNumber; target.BranchAddress = original.BranchAddress; target.BranchCity = original.BranchCity; target.BankAccountNumber = original.BankAccountNumber; return(target); }
private XElement ConvertBank(BE.BankAccount bank) { XElement newbank = new XElement("bank", new XElement("BankNum", bank.BankNumber), new XElement("BankName", bank.BankName), new XElement("City", bank.BranhCity), new XElement("Branch_Bank", bank.BranchNumber), new XElement("AdressBank", bank.BranchAdress), new XElement("AccountNum", bank.BankAccounts)); return(newbank); }
public static BE.BankAccount Clone(this BE.BankAccount original) { BE.BankAccount target = new BankAccount(original.BankName, original.BranchNumber, original.BranchAddress, original.BranchCity, original.Banknumber); return(target); }