Exemplo n.º 1
0
        // GET: SimpleContentApp/Home
        public ActionResult Index()
        {
            CamlQueryResponse <List <Item> > response = ContentApp.Service.GetList(new Paging()
            {
                PageIndex = 1, PageSize = 20
            });
            MappingUser map = ContentApp.Service.GetCurrentUser();

            ViewBag.Settings    = ContentApp.UserSettings;
            ViewBag.Items       = new ConverterService().ConvertListingItems(response.RelevantResults);
            ViewBag.MappingUser = map;


            return(View());
        }
Exemplo n.º 2
0
        public BaseWPExportData(WPExportDTO export)
        {
            this._export = export;

            MappingPost mappingPost = new MappingPost();

            this.MapperPost = mappingPost.Get;

            MappingProducts mappingProducts = new MappingProducts();

            this.MapperProduct = mappingProducts.Get;

            MappingCategory mappingCategory = new MappingCategory();

            this.MapperCategory = mappingCategory.Get;

            MappingTag mappingTag = new MappingTag();

            this.MapperTag = mappingTag.Get;

            MappingUser mappingUser = new MappingUser();

            this.MapperUser = mappingUser.Get;
        }