Example #1
0
        public async Task Update(StorageFeeBll elementToUpdate)
        {
            storageFee storage = Mapper.Map <StorageFeeBll, storageFee>(elementToUpdate);

            _unitOfWork.storageFeeUnitOfWork.Update(storage);
            await _unitOfWork.Save();
        }
Example #2
0
        public async Task Insert(StorageFeeBll element)
        {
            storageFee storage = Mapper.Map <StorageFeeBll, storageFee>(element);

            _unitOfWork.storageFeeUnitOfWork.Insert(storage);
            await _unitOfWork.Save();
        }
Example #3
0
        public async Task <int> InsertVoidInt(StorageFeeBll element)
        {
            storageFee storage = Mapper.Map <StorageFeeBll, storageFee>(element);

            _unitOfWork.storageFeeUnitOfWork.Insert(storage);
            await _unitOfWork.Save();

            return(storage.idStorageFee);
        }