public async Task Update(StorageFeeBll elementToUpdate) { storageFee storage = Mapper.Map <StorageFeeBll, storageFee>(elementToUpdate); _unitOfWork.storageFeeUnitOfWork.Update(storage); await _unitOfWork.Save(); }
public async Task Insert(StorageFeeBll element) { storageFee storage = Mapper.Map <StorageFeeBll, storageFee>(element); _unitOfWork.storageFeeUnitOfWork.Insert(storage); await _unitOfWork.Save(); }
public async Task <int> InsertVoidInt(StorageFeeBll element) { storageFee storage = Mapper.Map <StorageFeeBll, storageFee>(element); _unitOfWork.storageFeeUnitOfWork.Insert(storage); await _unitOfWork.Save(); return(storage.idStorageFee); }