Esempio n. 1
0
        public async Task Update(CostsCarWashAndDeteylingBll elementToUpdate)
        {
            costsCarWashAndDeteyling costsCarWashAndDeteylings = Mapper.Map <CostsCarWashAndDeteylingBll, costsCarWashAndDeteyling>(elementToUpdate);

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

            _unitOfWork.costsCarWashAndDeteylingUnitOfWork.Insert(costsCarWashAndDeteylings);
            await _unitOfWork.Save();
        }