Example #1
0
        public async Task Update(ExpenseCategoryBll elementToUpdate)
        {
            expenseCategory expenseCategorys = Mapper.Map <ExpenseCategoryBll, expenseCategory>(elementToUpdate);

            _unitOfWork.expenseCategoryUnitOfWork.Update(expenseCategorys);
            await _unitOfWork.Save();
        }
Example #2
0
        public async Task Insert(ExpenseCategoryBll element)
        {
            expenseCategory expenseCategorys = Mapper.Map <ExpenseCategoryBll, expenseCategory>(element);

            _unitOfWork.expenseCategoryUnitOfWork.Insert(expenseCategorys);
            await _unitOfWork.Save();
        }