public ActionResult Terminal() { var model = new TerminalVM(); model.ItemCategories = _itemCategoryManager.GetAll(); model.Items = _itemManager.GetAll(); return(View(model)); }
// GET: Item/Create public ActionResult Create() { var model = new ItemCreateVM(); model.ItemCategories = _itemCategoryManager.GetAll(); model.ChildItems = _itemManager.GetAll(); return(View(model)); }
// GET: ItemCategory public ActionResult Add() { ItemCategoryVM categoryVM = new ItemCategoryVM(); categoryVM.CategoryList = _categoryManager.GetAll(); //var DropDown = new List<SelectListItem>(); //DropDown.AddRange(categoryVM.CategoryList.Select(c=>new SelectListItem {Value=c.Id.ToString(), Text = c.Name.ToString()})); //categoryVM.CategoryDropDown = DropDown; ViewBag.ParentId = new List <SelectListItem>(); return(View(categoryVM)); }
// GET: ItemCategory public ActionResult Index() { var itemCategoryList = _itemCategoryManager.GetAll(); return(View(itemCategoryList)); }
public ActionResult AddCategory() { var model = new ItemCategoryCreateVM(); model.ItemCategories = _ItemCategoryManager.GetAll(); return(View(model)); }