public static TransactionGetAllByClientParameters ToParameters(this TransactionGetAllByClientMqRequest transactionGetAllByClientMqRequest)
        {
            var transactionGetAllByClientParameters = new TransactionGetAllByClientParameters()
            {
                ClientId          = transactionGetAllByClientMqRequest.ClientId,
                DepartmentAddress = transactionGetAllByClientMqRequest.DepartmentAddress,
            };

            return(transactionGetAllByClientParameters);
        }
Esempio n. 2
0
        public List <Transaction> GetAllByClient(TransactionGetAllByClientParameters transactionGetAllByClientParameters)
        {
            using var sqlConnection = CreateConnection();

            return(sqlConnection.Query <Transaction>("Transaction_GetAllByClient", transactionGetAllByClientParameters, commandType: CommandType.StoredProcedure).ToList());
        }