コード例 #1
0
        //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();
        }
コード例 #2
0
 public Task <ExpenseCategoryModel> Get(int id)
 {
     return(_expensecategoryRepository.Get(id));
 }