public async Task getImagePerForecast(int stockId) { stockId = FirstShop(stockId); ItExecutionPlanShop itExecutionPlanShop = await _iitExecutionPlanShopRepository.getInfoForStockId(stockId); ItExecutionPlanShopModel itExecutionPlanShopModel = _mapper.Map <ItExecutionPlanShop, ItExecutionPlanShopModel>(itExecutionPlanShop); getImageForecast(itExecutionPlanShopModel); }
public async Task <ItExecutionPlanShop> getInfoForStockId(int stockId) { ItExecutionPlanShop itExecutionPlanShop = await _avroraContext.ItExecutionPlanShops.Where(x => x.StockId == stockId).FirstOrDefaultAsync(); return(itExecutionPlanShop); }