public async Task Update(CostsCarWashAndDeteylingBll elementToUpdate) { costsCarWashAndDeteyling costsCarWashAndDeteylings = Mapper.Map <CostsCarWashAndDeteylingBll, costsCarWashAndDeteyling>(elementToUpdate); _unitOfWork.costsCarWashAndDeteylingUnitOfWork.Update(costsCarWashAndDeteylings); await _unitOfWork.Save(); }
public async Task Insert(CostsCarWashAndDeteylingBll element) { costsCarWashAndDeteyling costsCarWashAndDeteylings = Mapper.Map <CostsCarWashAndDeteylingBll, costsCarWashAndDeteyling>(element); _unitOfWork.costsCarWashAndDeteylingUnitOfWork.Insert(costsCarWashAndDeteylings); await _unitOfWork.Save(); }