// GET: ExpenseCategory/Create
        public ActionResult Create()
        {
            var model = new ExpenseCategoryCreateVM();

            model.Childs = _expenseCategoryManager.GetAll();
            return(View(model));
        }
Пример #2
0
        // GET: ExpenseCategory
        public ActionResult Add()
        {
            ExpenseCategoryVM expenseCat = new ExpenseCategoryVM();

            expenseCat.All   = _expenseCategoryManager.GetAll();
            ViewBag.ParentId = new List <SelectListItem>();
            return(View(expenseCat));
        }