public ActionResult Create(ExpenseItemCreateVM model)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    var  item    = Mapper.Map <ExpenseItem>(model);
                    bool isSaved = _expenseItemManager.Save(item);
                    if (isSaved)
                    {
                        return(RedirectToAction("Create"));
                    }
                }
            }
            catch (Exception exception)
            {
                ModelState.AddModelError("", exception.Message);
                var expenseCategoryList = _expenseCategoryManager.GetAll();
                model.ExpenseCategories = expenseCategoryList;
                model.ChildItems        = _expenseItemManager.GetAll();
                return(View(model));
            }
            var expenseCategory = _expenseCategoryManager.GetAll();

            model.ExpenseCategories = expenseCategory;
            model.ChildItems        = _expenseItemManager.GetAll();
            return(View(model));
        }
        // GET: ExpenseItem/Create
        public ActionResult Create()
        {
            var model = new ExpenseItemCreateVM();

            model.ExpenseCategories = _expenseCategoryManager.GetAll();
            model.ChildItems        = _expenseItemManager.GetAll();
            return(View(model));
        }