Example #1
0
        public virtual ActionResult Index()
        {
            ViewBag.CategoryDictionary = ProductCategoryService.GetListForInventory <LanguageProductCategoryDto>()
                                         .ToDictionary(x => x.ID, x => x.Name);
            ViewBag.UnitDictionary = UnitService.ListItemUnit <LanguageUnitDto>()
                                     .ToDictionary(x => x.ID, x => x.Name);

            var recordList = Service.GetList();

            var model = new AdminModel <ItemDto>
            {
                ListRecord = recordList,
                CanAdd     = true,
                CanDelete  = true,
                CanEdit    = true
            };

            return(View(model));
        }