// GET: ExpenseCategory/Create public ActionResult Create() { var model = new ExpenseCategoryCreateVM(); model.Childs = _expenseCategoryManager.GetAll(); return(View(model)); }
// GET: ExpenseCategory public ActionResult Add() { ExpenseCategoryVM expenseCat = new ExpenseCategoryVM(); expenseCat.All = _expenseCategoryManager.GetAll(); ViewBag.ParentId = new List <SelectListItem>(); return(View(expenseCat)); }