public StockProfileDto Get(string stockCode) { #if DEBUG /*test code for communication*************************************/ var dto = new StockProfileDto() { CodeA = "600036", }; return dto; /*test code for communication*************************************/ #else throw new System.NotImplementedException(); #endif }
public static StockProfileDto ToDto(this IStockProfile self) { StockProfileDto outputData = new StockProfileDto { AccountingFirm = self.AccountingFirm, Area = self.Area, BoardSecretary = self.BoardSecretary, BusinessRegistration = self.BusinessRegistration, Chairman = self.Chairman, CodeA = self.CodeA, CodeB = self.CodeB, CodeH = self.CodeH, CompanyProfile = self.CompanyProfile, ContactNumber = self.ContactNumber, Email = self.Email, EnglishName = self.EnglishName, EstablishmentDate = self.EstablishmentDate, Exchange = self.Exchange, Fax = self.Fax, FullName = self.FullName, GeneralManager = self.GeneralManager, IndependentDirectors = self.IndependentDirectors, Industry = self.Industry, LawOffice = self.LawOffice, LegalRepresentative = self.LegalRepresentative, ListDate = self.ListDate, NameUsedBefore = self.NameUsedBefore, NumberOfEmployees = self.NumberOfEmployees, NumberOfManagement = self.NumberOfManagement, OfficeAddress = self.OfficeAddress, PrimeBusiness = self.PrimeBusiness, RegisteredAddress = self.RegisteredAddress, RegisteredCapital = self.RegisteredCapital, SecuritiesAffairsRepresentatives = self.SecuritiesAffairsRepresentatives, ShortNameA = self.ShortNameA, ShortNameB = self.ShortNameB, ShortNameH = self.ShortNameH, Website = self.Website, ZipCode = self.ZipCode }; return outputData; }