//using for active and deactive expenseCategory public void SetStatusExpenseCategory(string id) { var expenseCategoryToRemove = _expenseCategoryRepository.Get(c => c.CategoryC == id); if (expenseCategoryToRemove.IsActive == Constants.ACTIVE) { expenseCategoryToRemove.IsActive = Constants.DEACTIVE; } else { expenseCategoryToRemove.IsActive = Constants.ACTIVE; } _expenseCategoryRepository.Update(expenseCategoryToRemove); SaveExpenseCategory(); }
public Task <ExpenseCategoryModel> Get(int id) { return(_expensecategoryRepository.Get(id)); }