OpenSource » SampleCode » NexportWebApiMvcSampleSite Sample MVC 4 Website project that demonstrates the use of the NexPort WebApi
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

Added table of catalogs, removed thumbnails.

Changeset 490adac41f40

Parent 73ed58e941d5

by Profile picture of User 240Clayton Miller <clayton.miller@nexportengineering.com>

Changes to 2 files · Browse files at 490adac41f40 Showing diff from parent 73ed58e941d5 Diff from another changeset...

 
 
 
17
18
19
20
21
22
 
 
 
 
 
 
23
24
25
 
71
72
73
74
75
76
77
78
 
79
80
81
 
84
85
86
87
88
89
90
91
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
 
233
234
235
 
257
258
259
260
 
261
262
263
 
 
 
 
264
265
266
 
17
18
19
 
 
 
20
21
22
23
24
25
26
27
28
 
74
75
76
 
77
 
 
 
78
79
80
81
 
84
85
86
 
 
 
 
 
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
103
104
105
 
127
128
129
 
130
131
 
 
132
133
134
135
136
137
138
@@ -17,9 +17,12 @@
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->   <!--[if lt IE 9]>   <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> - <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> - <![endif]--> - + <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> + <![endif]--> + + <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> + <link rel="stylesheet" href="https://rawgit.com/wenzhixin/bootstrap-table/master/dist/bootstrap-table.min.css"> +  </head>    <body> @@ -71,11 +74,8 @@
  </div>     <div class="col-md-9"> -   <div class="row"> - - - <table class="table table-striped"> + <table class="table">   <thead>   <tr>   <th>Catalog</th> @@ -84,152 +84,22 @@
  </tr>   </thead>   <tbody> - <tr> - <td>@catalogs[0].name</td> - <td>@catalogs[0].org_name</td> - <td>@catalogs[0].date_created</td> - </tr> + @foreach (var catalog in catalogs) + { + <tr> + <td> + @catalog.name + </td> + <td> + @catalog.org_name + </td> + <td> + @catalog.date_created + </td> + </tr> + }   </tbody> - </table> - <div class="col-sm-4 col-lg-4 col-md-4"> - <div class="thumbnail"> - <img src="http://placehold.it/320x150" alt=""> - <div class="caption"> - <h4 class="pull-right">$24.99</h4> - <h4><a href="#">First Product</a> - </h4> - <p>See more snippets like this online store item at <a target="_blank" href="http://www.bootsnipp.com">Bootsnipp - http://bootsnipp.com</a>.</p> - </div> - <div class="ratings"> - <p class="pull-right">15 reviews</p> - <p> - <span class="glyphicon glyphicon-star"></span> - <span class="glyphicon glyphicon-star"></span> - <span class="glyphicon glyphicon-star"></span> - <span class="glyphicon glyphicon-star"></span> - <span class="glyphicon glyphicon-star"></span> - </p> - </div> - </div> - </div> - - <div class="col-sm-4 col-lg-4 col-md-4"> - <div class="thumbnail"> - <img src="http://placehold.it/320x150" alt=""> - <div class="caption"> - <h4 class="pull-right">$64.99</h4> - <h4><a href="#">Second Product</a> - </h4> - <p>This is a short description. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> - </div> - <div class="ratings"> - <p class="pull-right">12 reviews</p> - <p> - <span class="glyphicon glyphicon-star"></span> - <span class="glyphicon glyphicon-star"></span> - <span class="glyphicon glyphicon-star"></span> - <span class="glyphicon glyphicon-star"></span> - <span class="glyphicon glyphicon-star-empty"></span> - </p> - </div> - </div> - </div> - - <div class="col-sm-4 col-lg-4 col-md-4"> - <div class="thumbnail"> - <img src="http://placehold.it/320x150" alt=""> - <div class="caption"> - <h4 class="pull-right">$74.99</h4> - <h4><a href="#">Third Product</a> - </h4> - <p>This is a short description. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> - </div> - <div class="ratings"> - <p class="pull-right">31 reviews</p> - <p> - <span class="glyphicon glyphicon-star"></span> - <span class="glyphicon glyphicon-star"></span> - <span class="glyphicon glyphicon-star"></span> - <span class="glyphicon glyphicon-star"></span> - <span class="glyphicon glyphicon-star-empty"></span> - </p> - </div> - </div> - </div> - - <div class="col-sm-4 col-lg-4 col-md-4"> - <div class="thumbnail"> - <img src="http://placehold.it/320x150" alt=""> - <div class="caption"> - <h4 class="pull-right">$84.99</h4> - <h4><a href="#">Fourth Product</a> - </h4> - <p>This is a short description. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> - </div> - <div class="ratings"> - <p class="pull-right">6 reviews</p> - <p> - <span class="glyphicon glyphicon-star"></span> - <span class="glyphicon glyphicon-star"></span> - <span class="glyphicon glyphicon-star"></span> - <span class="glyphicon glyphicon-star-empty"></span> - <span class="glyphicon glyphicon-star-empty"></span> - </p> - </div> - </div> - </div> - - <div class="col-sm-4 col-lg-4 col-md-4"> - <div class="thumbnail"> - <img src="http://placehold.it/320x150" alt=""> - <div class="caption"> - <h4 class="pull-right">$94.99</h4> - <h4><a href="#">Fifth Product</a> - </h4> - <p>This is a short description. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> - </div> - <div class="ratings"> - <p class="pull-right">18 reviews</p> - <p> - <span class="glyphicon glyphicon-star"></span> - <span class="glyphicon glyphicon-star"></span> - <span class="glyphicon glyphicon-star"></span> - <span class="glyphicon glyphicon-star"></span> - <span class="glyphicon glyphicon-star-empty"></span> - </p> - </div> - </div> - </div> - - - <div class="col-sm-4 col-lg-4 col-md-4"> - <div class="thumbnail"> - <img src="http://placehold.it/320x150" alt=""> - <div class="caption"> - <h4 class="pull-right">$94.99</h4> - <h4> - <a href="#">Fifth Product</a> - </h4> - <p>This is a short description. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> - </div> - <div class="ratings"> - <p class="pull-right">18 reviews</p> - <p> - <span class="glyphicon glyphicon-star"></span> - <span class="glyphicon glyphicon-star"></span> - <span class="glyphicon glyphicon-star"></span> - <span class="glyphicon glyphicon-star"></span> - <span class="glyphicon glyphicon-star-empty"></span> - </p> - </div> - </div> - </div> - <div class="col-sm-4 col-lg-4 col-md-4"> - <h4><a href="#">Like this template?</a> - </h4> - <p>If you like this template, then check out <a target="_blank" href="http://maxoffsky.com/code-blog/laravel-shop-tutorial-1-building-a-review-system/">this tutorial</a> on how to build a working review system for your online store!</p> - <a class="btn btn-primary" target="_blank" href="http://maxoffsky.com/code-blog/laravel-shop-tutorial-1-building-a-review-system/">View Tutorial</a> - </div> + </table>     </div>   @@ -257,10 +127,12 @@
  <!-- /.container -->     <!-- jQuery --> - <script src="js/jquery.js"></script> + <script src="~/js/jquery.js"></script>   - <!-- Bootstrap Core JavaScript --> - <script src="js/bootstrap.min.js"></script> + <!-- Bootstrap Core JavaScript --> + <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script> + + <script src="https://rawgit.com/wenzhixin/bootstrap-table/master/dist/bootstrap-table.min.js"></script>    </body>