public async Task <KeyNameGroup> CreateBistKeyGroup() { var list = (await _stockContext.GetBist()).Select(x => new KeyNameItem { Key = x.StockName.ToUpper() }); return(new KeyNameGroup { GroupName = "Bist", KeyNameList = list.ToList() }); }
public async Task <IEnumerable <StockCodeRate> > GetLatestBist() { var bistData = await _contextService.GetBist(); return(bistData.Select(x => x.ConvertToDto())); }