public async Task <AssetSecurityHistoryDto> UpdateSecurityStatus(AssetSecurityHistoryDto assetSecurityHistoryDto) { try { this._loggingService.Debug("Started executing query", "AssetSecurityHistoryRepository.UpdateSecurityStatus"); this._transactions.Upsert(assetSecurityHistoryDto); return(assetSecurityHistoryDto); } catch (Exception ex) { this._loggingService.Error("Exception occurred while executing query", "AssetSecurityHistoryRepository.UpdateSecurityStatus", ex); throw ex; } }
public async Task <AssetSecurityHistoryDto> Fetch(AssetSecurityHistoryDto assetSecurityHistoryDto) { try { this._loggingService.Debug("Started executing query", "AssetSecurityHistoryRepository.Fetch"); var result = await this._transactions.GetAsync <AssetSecurityHistoryDto>(Queries.SELECT_ASSET_SECURITY_HISTORY, assetSecurityHistoryDto); return(result.ToList().FirstOrDefault()); } catch (Exception ex) { this._loggingService.Error("Exception occurred while executing query", "AssetSecurityHistoryRepository.Fetch", ex); throw ex; } }