Пример #1
0
        public async Task <string> GetBanner(GetBannersDataReq req)
        {
            var bannerData = _pizzaRepo.GetBannersData(req)
                             .FirstOrDefault();

            if (bannerData == null)
            {
                return(String.Empty);
            }

            return(await _viewToStringRenderer.RenderViewToStringAsync <object>(
                       @$ "/banner-template:/{bannerData.Uid}.banner-template",
                       bannerData));
        }
Пример #2
0
 public List <BannerTemplateData> GetBannersData(GetBannersDataReq req)
 {
     return(_pizzaRepo.GetBannersData(req));
 }