/// <summary> /// Returns DailyTransactionDetailLookupResponse for the DailyTransactionDetailLookup Request... /// </summary> /// <param name="isInTrainingMode">If is true Training mode is enabled</param> /// <param name="dailyTransactionDetailLookupRequest">DailyTransactionDetailLookupRequest Request</param> /// <returns>Task<DailyTransactionDetailLookupResponse></returns> public async Task <DOMAIN.Response.DailyTransactionDetailLookupResponse> DailyTransactionDetailLookupAsync(bool isInTrainingMode, DOMAIN.Request.DailyTransactionDetailLookupRequest dailyTransactionDetailLookupRequest) { dailyTransactionDetailLookupRequest.ThrowIfNull(nameof(dailyTransactionDetailLookupRequest)); var dailyTransactionDetailLookupResponse = await _proxyFactory.UseService(service => service.DailyTransactionDetailLookupAsync(dailyTransactionDetailLookupRequest.ToService())); return(dailyTransactionDetailLookupResponse.dailyTransactionDetailLookupResponse.ToDomain()); }
/// <summary> /// Returns DailyTransactionDetailLookupResponse for the DailyTransactionDetailLookup Request... /// </summary> /// <param name="isInTrainingMode">If is true Training mode is enabled</param> /// <param name="dailyTransactionDetailLookupRequest">DailyTransactionDetailLookupRequest Request</param> /// <returns>DailyTransactionDetailLookupResponse</returns> public DOMAIN.Response.DailyTransactionDetailLookupResponse DailyTransactionDetailLookup(bool isInTrainingMode, DOMAIN.Request.DailyTransactionDetailLookupRequest dailyTransactionDetailLookupRequest) { Task <DOMAIN.Response.DailyTransactionDetailLookupResponse> callTask = Task.Run(() => this.DailyTransactionDetailLookupAsync(isInTrainingMode, dailyTransactionDetailLookupRequest)); callTask.Wait(); return(callTask.Result); }