public async Task <ActionResult <ResponseModel> > GetTransactionByDates(string FromDate, string Todate) { var modal = new GetTransactionByDates { FromDate = Convert.ToDateTime(FromDate), ToDate = Convert.ToDateTime(Todate) }; IList <GetTransactions> result = await _transactionService.GetTransactions(modal); return(ResponseUtility.CreateResponse(result)); }
public async Task <IList <GetTransactions> > GetTransactions(GetTransactionByDates modal) { try { _dbconnection.StoredProcedure = "spGetTransactionsByDateRange"; _dbconnection.Parameters = modal; return(await _dapperRepository.QueryList <GetTransactions>(_dbconnection)); } catch (Exception ex) { throw ex; } }