public NewMainCategoryVm GetMainCategoryForEdit(int mainCategoryId)
        {
            var mainCategory   = _mainCRepo.GetMainCategoryById(mainCategoryId);
            var mainCategoryVm = _mapper.Map <NewMainCategoryVm>(mainCategory);

            return(mainCategoryVm);
        }
        private Budget GetBudgetOfMainCategory(int mainCategoryId)
        {
            var userId = _mainCRepo.GetMainCategoryById(mainCategoryId).ApplicationUserId;
            var budget = _budgetRepo.GetBudgetByUserId(userId);

            return(budget);
        }