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