public static Buyer getFromDTO(BuyerDTO a) { return(new Buyer() { Id = a.Id, Name = a.Name }); }
public static BuyerDTO[] getDTO(Buyer[] Buyere) { BuyerDTO[] Buyerdtos = new BuyerDTO[Buyere.Length]; for (int i = 0; i < Buyere.Length; i++) { Buyerdtos[i] = getDTO(Buyere[i]); } return(Buyerdtos); }