Cannot Convert From ElasticCoreWebApi.Controllers.AcquirerController.AcquirerReportParameters to ElasticCoreWebApi.BLL.ElasticSettledTranaction.AcquirerReportParameter
ElasticCoreWebApi has Reference of ElasticCoreWebApi.BLL operation
ElasticCoreWebApi.AcquirerController has the class
public class AcquiringReportParameters
{
public string reportname { get; set; }
public int merchantId { get; set; }
public string branchCodes { get; set; }
public string fromDate { get; set; }
public string toDate { get; set; }
public string merchantName { get; set; }
public string batchNo { get; set; }
public string terminalId { get; set; }
public string merchantNumber { get; set; }
public string merchantBranchName { get; set; }
public string dRCR { get; set; }
public string mID { get; set; }
public int pageSize { get; set; }
public int pageIndex { get; set; }
}
In Acquirer controller i am calling the second method and passing the parameters like this i have data mapped in the class
AcquiringReportParameters parameters = new AcquiringReportParameters();
ElasticSettlementTransactionBLL ElasticBLL = new ElasticSettlementTransactionBLL();
*var test = await ElasticBLL.GetSettledParameterTransaction(parameters);*
*I am getting error here in the parameter*
ElasticCoreWebApi.BLL.ElasticSettledTransaction.cs has the class
public class AcquiringReportParameters
{
public string reportname { get; set; }
public int merchantId { get; set; }
public string branchCodes { get; set; }
public string fromDate { get; set; }
public string toDate { get; set; }
public string merchantName { get; set; }
public string batchNo { get; set; }
public string terminalId { get; set; }
public string merchantNumber { get; set; }
public string merchantBranchName { get; set; }
public string dRCR { get; set; }
public string mID { get; set; }
public int pageSize { get; set; }
public int pageIndex { get; set; }
}
Here is the method which i was calling
public async Task<string> GetSettledParameterTransaction(AcquiringReportParameters parameters)