public GetSubContractSendingResponseQM GetSubContractSendingDetails()
        {
            var model = new GetSubContractSendingResponseQM();

            using (var connection = new DbConnectionProvider().CreateConnection())
            {
                connection.Open();

                var command = new GetSubContractSendingSelectCommand {
                    Connection = connection
                };
                model = command.Execute();
            }

            return(model);
        }
Beispiel #2
0
        public GetSubContractSendingResponseQM Execute()
        {
            var response = new GetSubContractSendingResponseQM();

            using (var sqlCommand = CreateCommand())
            {
                sqlCommand.Connection  = Connection;
                sqlCommand.CommandText = "[dbo].[uspGetSubContractSendingDetails]";
                sqlCommand.CommandType = CommandType.StoredProcedure;

                using (var reader = SsDbCommandHelper.ExecuteReader(sqlCommand))
                {
                    response.getSubContractSendingResponseModel = reader.ToList <GetSubContractSendingResponseModel>();
                }
            }
            return(response);
        }