public ActionResult AddAccountSubCategory(AccountSubCategory model)
        {
            _financialService.AddAccountSubCategory(new AccountSubCategory()
            {
                AccountSubCategoryName = model.AccountSubCategoryName,
                AccountId = model.AccountId,
                // AccountClassId = model.AccountClassId,
                Description = model.Description

                              //AccountName = Model.AccountName,
                              //SubCategory = Model.SubCategory
            });


            // return RedirectToAction("Accounts");
            return(RedirectToAction("SubCategories"));
        }
Exemple #2
0
 public void AddAccountSubCategory(AccountSubCategory accountSubCategory)
 {
     _accountSubCategory.Insert(accountSubCategory);
 }
Exemple #3
0
 public void EditAccountSubCategory(AccountSubCategory accountSubCategory)
 {
     _accountSubCategory.Update(accountSubCategory);
 }
Exemple #4
0
 public static string GetDisplayName(this AccountSubCategory acctSubCategory)
 {
     return(EnumerationExtensions.GetDisplayName(acctSubCategory));
 }