Example #1
0
        public ActionResult _AuthorCatalog(int?id)
        {
            MainLayoutViewModel = WidgetServices.GetStoreBaseModelToken(Constants.LFE_MAIN_STORE_TRACKING_ID);

            ViewData["MainLayoutViewModel"] = MainLayoutViewModel;
            TempData["MainLayoutViewModel"] = MainLayoutViewModel;

            var model = id != null?_widgetServices.GetAuthorIndexModelViewToken(Constants.DEFAULT_CURRENCY_ID, Constants.LFE_MAIN_STORE_TRACKING_ID, (int)id) : new IndexModelViewToken
            {
                ItemsList = new List <WidgetItemListDTO>()
            };

            return(PartialView("Item/_Catalog", model));
        }