public List <ExpenseCategory> GetCategories(string userId) { var categories = _expenseCategoryRepository.GetExpenseCategories(userId).ToList(); if (categories.Count == 0) { CopyAdminCategories(userId); return(_expenseCategoryRepository.GetExpenseCategories(userId).ToList()); } return(categories); }