Skip to content

Commit d42fcb6

Browse files
committed
Delet Admin userspost view
1 parent fc6dce4 commit d42fcb6

26 files changed

+144
-74
lines changed

EPAM.MyBlog.UI.Web/Content/css/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,4 +171,8 @@ p {
171171
}
172172
.gridbutton {
173173
width:20%;
174+
}
175+
176+
.hidden{
177+
display:none;
174178
}
68.3 KB
Loading

EPAM.MyBlog.UI.Web/Controllers/AdminController.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,6 @@ public ActionResult UserPosts(string name)
9191
}
9292

9393

94-
[Authorize(Roles = "Admin")]
95-
public ActionResult Posts(Guid Id)
96-
{
97-
var post = PostModel.GetPostById(Id);
98-
return View(post);
99-
}
100-
101-
102-
10394
[Authorize(Roles = "Admin")]
10495
public ActionResult UserComments(string name)
10596
{

EPAM.MyBlog.UI.Web/EPAM.MyBlog.UI.Web.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@
155155
<Content Include="Content\bootstrap.css" />
156156
<Content Include="Content\bootstrap.min.css" />
157157
<Content Include="Content\css\style.css" />
158+
<Content Include="Content\img\712.GIF" />
158159
<Content Include="Content\img\cropped-345656.jpg" />
159160
<Content Include="Content\img\logo.png" />
160161
<Content Include="Content\img\User-icon.png" />
@@ -166,6 +167,8 @@
166167
<Content Include="Scripts\bootstrap.js" />
167168
<Content Include="Scripts\bootstrap.min.js" />
168169
<None Include="Scripts\jquery-2.1.1.intellisense.js" />
170+
<Content Include="Scripts\include\links.js" />
171+
<Content Include="Scripts\include\loading.js" />
169172
<Content Include="Scripts\include\script.js" />
170173
<Content Include="Scripts\jquery-1.11.2.js" />
171174
<Content Include="Scripts\jquery-2.1.1.js" />
@@ -285,7 +288,6 @@
285288
<Content Include="Views\Admin\Users.cshtml" />
286289
<Content Include="Views\Admin\UserPosts.cshtml" />
287290
<Content Include="Views\Admin\DeletePost.cshtml" />
288-
<Content Include="Views\Admin\Posts.cshtml" />
289291
<Content Include="Views\Admin\UserComments.cshtml" />
290292
<Content Include="Views\Admin\DeleteComment.cshtml" />
291293
<Content Include="Views\Account\DeleteAc.cshtml" />

EPAM.MyBlog.UI.Web/Logs/Debug/2015.01.28.log

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,23 @@
1414
2015-01-28 00:45:22,417 [10] INFO EPAM.MyBlog.DAL.DB.DAL [(null)] - DB: ������ ����: 05a6ece9-4bf6-4b87-8073-0b4303c3abd3
1515
2015-01-28 00:45:22,432 [10] INFO EPAM.MyBlog.UI.Web.Controllers.AdminController [(null)] - �������� ����� 05a6ece9-4bf6-4b87-8073-0b4303c3abd3
1616
2015-01-28 02:19:06,245 [224] INFO EPAM.MyBlog.UI.Web.Controllers.FilesController [(null)] - �������� ������� �� ���� ��� ������������: Admin2
17+
2015-01-28 02:36:18,374 [238] INFO EPAM.MyBlog.UI.Web.Controllers.FilesController [(null)] - �������� ������� �� ���� ��� ������������: Admin2
18+
2015-01-28 02:36:28,948 [223] INFO EPAM.MyBlog.UI.Web.Controllers.FilesController [(null)] - �������� ������� �� ���� ��� ������������: Admin2
19+
2015-01-28 02:36:37,238 [230] INFO EPAM.MyBlog.UI.Web.Controllers.FilesController [(null)] - �������� ������� �� ���� ��� ������������: Admin2
20+
2015-01-28 02:36:41,419 [230] INFO EPAM.MyBlog.UI.Web.Controllers.FilesController [(null)] - �������� ������� �� ���� ��� ������������: Admin2
21+
2015-01-28 12:58:24,222 [71] INFO EPAM.MyBlog.UI.Web.Models.LoginModel [(null)] - ������������: Admin2 ���� ������������ ������
22+
2015-01-28 13:08:35,294 [10] INFO EPAM.MyBlog.UI.Web.Controllers.AccountController [(null)] - ������������ ����� �� �������: Admin2
23+
2015-01-28 13:08:45,549 [64] INFO EPAM.MyBlog.UI.Web.Models.LoginModel [(null)] - ������������: Admin2 ���� ������������ ������
24+
2015-01-28 13:10:21,046 [73] INFO EPAM.MyBlog.UI.Web.Models.LoginModel [(null)] - ���� � ������� ������������: Admin2
25+
2015-01-28 13:10:36,467 [64] INFO EPAM.MyBlog.UI.Web.Controllers.FilesController [(null)] - �������� ������� �� ���� ��� ������������: Admin2
26+
2015-01-28 13:10:57,801 [67] INFO EPAM.MyBlog.UI.Web.Controllers.AdminController [(null)] - �������� ���� �� -���������- � �������������: Jemrock
27+
2015-01-28 13:11:24,520 [71] INFO EPAM.MyBlog.DAL.DB.DAL [(null)] - DB: �������� �����������: 6e60457a-d783-4148-892f-5e8c5310154e � �����: b017e7d1-7f79-4249-a3eb-085f6d7059e3
28+
2015-01-28 13:11:24,520 [71] INFO EPAM.MyBlog.UI.Web.Controllers.CommentController [(null)] - �������� ����������� ������������: Admin2 � �����: b017e7d1-7f79-4249-a3eb-085f6d7059e3
29+
2015-01-28 13:12:05,259 [69] INFO EPAM.MyBlog.DAL.DB.DAL [(null)] - DB: �������� ����: 27bf7276-9925-46b9-9fca-6e33f48f2b96 ������������:
30+
2015-01-28 13:54:02,025 [48] INFO EPAM.MyBlog.UI.Web.Models.LoginModel [(null)] - ���� � ������� ������������: Admin2
31+
2015-01-28 14:37:33,524 [29] INFO EPAM.MyBlog.UI.Web.Controllers.FilesController [(null)] - �������� ������� �� ���� ��� ������������: Admin2
32+
2015-01-28 15:19:33,700 [95] INFO EPAM.MyBlog.UI.Web.Controllers.AccountController [(null)] - ������������ ����� �� �������: Admin2
33+
2015-01-28 15:20:28,909 [95] INFO EPAM.MyBlog.UI.Web.Controllers.AccountController [(null)] - ������������ ����� �� �������: Admin2
34+
2015-01-28 15:25:00,887 [98] INFO EPAM.MyBlog.UI.Web.Models.LoginModel [(null)] - ���� � ������� ������������: Admin2
35+
2015-01-28 15:25:03,506 [24] INFO EPAM.MyBlog.UI.Web.Controllers.FilesController [(null)] - �������� ������� �� ���� ��� ������������: Admin2
36+
2015-01-28 15:35:02,572 [27] INFO EPAM.MyBlog.UI.Web.Controllers.FilesController [(null)] - �������� ������� �� ���� ��� ������������: Admin2

EPAM.MyBlog.UI.Web/Logs/Errors/2015.01.28.log

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,23 @@
1414
2015-01-28 00:45:22,417 [10] INFO EPAM.MyBlog.DAL.DB.DAL [(null)] - DB: ������ ����: 05a6ece9-4bf6-4b87-8073-0b4303c3abd3
1515
2015-01-28 00:45:22,432 [10] INFO EPAM.MyBlog.UI.Web.Controllers.AdminController [(null)] - �������� ����� 05a6ece9-4bf6-4b87-8073-0b4303c3abd3
1616
2015-01-28 02:19:06,245 [224] INFO EPAM.MyBlog.UI.Web.Controllers.FilesController [(null)] - �������� ������� �� ���� ��� ������������: Admin2
17+
2015-01-28 02:36:18,374 [238] INFO EPAM.MyBlog.UI.Web.Controllers.FilesController [(null)] - �������� ������� �� ���� ��� ������������: Admin2
18+
2015-01-28 02:36:28,948 [223] INFO EPAM.MyBlog.UI.Web.Controllers.FilesController [(null)] - �������� ������� �� ���� ��� ������������: Admin2
19+
2015-01-28 02:36:37,238 [230] INFO EPAM.MyBlog.UI.Web.Controllers.FilesController [(null)] - �������� ������� �� ���� ��� ������������: Admin2
20+
2015-01-28 02:36:41,419 [230] INFO EPAM.MyBlog.UI.Web.Controllers.FilesController [(null)] - �������� ������� �� ���� ��� ������������: Admin2
21+
2015-01-28 12:58:24,222 [71] INFO EPAM.MyBlog.UI.Web.Models.LoginModel [(null)] - ������������: Admin2 ���� ������������ ������
22+
2015-01-28 13:08:35,294 [10] INFO EPAM.MyBlog.UI.Web.Controllers.AccountController [(null)] - ������������ ����� �� �������: Admin2
23+
2015-01-28 13:08:45,549 [64] INFO EPAM.MyBlog.UI.Web.Models.LoginModel [(null)] - ������������: Admin2 ���� ������������ ������
24+
2015-01-28 13:10:21,046 [73] INFO EPAM.MyBlog.UI.Web.Models.LoginModel [(null)] - ���� � ������� ������������: Admin2
25+
2015-01-28 13:10:36,467 [64] INFO EPAM.MyBlog.UI.Web.Controllers.FilesController [(null)] - �������� ������� �� ���� ��� ������������: Admin2
26+
2015-01-28 13:10:57,801 [67] INFO EPAM.MyBlog.UI.Web.Controllers.AdminController [(null)] - �������� ���� �� -���������- � �������������: Jemrock
27+
2015-01-28 13:11:24,520 [71] INFO EPAM.MyBlog.DAL.DB.DAL [(null)] - DB: �������� �����������: 6e60457a-d783-4148-892f-5e8c5310154e � �����: b017e7d1-7f79-4249-a3eb-085f6d7059e3
28+
2015-01-28 13:11:24,520 [71] INFO EPAM.MyBlog.UI.Web.Controllers.CommentController [(null)] - �������� ����������� ������������: Admin2 � �����: b017e7d1-7f79-4249-a3eb-085f6d7059e3
29+
2015-01-28 13:12:05,259 [69] INFO EPAM.MyBlog.DAL.DB.DAL [(null)] - DB: �������� ����: 27bf7276-9925-46b9-9fca-6e33f48f2b96 ������������:
30+
2015-01-28 13:54:02,025 [48] INFO EPAM.MyBlog.UI.Web.Models.LoginModel [(null)] - ���� � ������� ������������: Admin2
31+
2015-01-28 14:37:33,524 [29] INFO EPAM.MyBlog.UI.Web.Controllers.FilesController [(null)] - �������� ������� �� ���� ��� ������������: Admin2
32+
2015-01-28 15:19:33,700 [95] INFO EPAM.MyBlog.UI.Web.Controllers.AccountController [(null)] - ������������ ����� �� �������: Admin2
33+
2015-01-28 15:20:28,909 [95] INFO EPAM.MyBlog.UI.Web.Controllers.AccountController [(null)] - ������������ ����� �� �������: Admin2
34+
2015-01-28 15:25:00,887 [98] INFO EPAM.MyBlog.UI.Web.Models.LoginModel [(null)] - ���� � ������� ������������: Admin2
35+
2015-01-28 15:25:03,506 [24] INFO EPAM.MyBlog.UI.Web.Controllers.FilesController [(null)] - �������� ������� �� ���� ��� ������������: Admin2
36+
2015-01-28 15:35:02,572 [27] INFO EPAM.MyBlog.UI.Web.Controllers.FilesController [(null)] - �������� ������� �� ���� ��� ������������: Admin2

EPAM.MyBlog.UI.Web/Models/MyRoleProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public override string[] GetRolesForUser(string username)
2424
switch (role)
2525
{
2626
case 1:
27-
return new[] { "Admin", "Moder", "User" };
27+
return new[] { "Admin", "User" };
2828
case 2:
2929
return new[] { "Moder", "User" };
3030
case 3:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
var Links = { GetPosts: '@Url.Action("MyPosts", "Post")' }
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+

2+
//document.onload = function () {
3+
// document.getElementById("content").className("hidden");
4+
// document.getElementById("loading").className("col-lg-9 col-md-9 col-sm-9 shadow")
5+
//}();
6+
//document.addEventListener("DOMContentLoaded", function (event) {
7+
// document.getElementById("loading").className("hidden");
8+
// document.getElementById("content").className("col-lg-9 col-md-9 col-sm-9 shadow")
9+
//});
10+
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
/// <reference path="../jquery-2.1.1.min.js" />
1+
/// <reference path="../jquery-1.11.2.js" />
22

3-
function get_page() {
3+
(function get_page() {
44
$.ajax({
55
type: "GET",
66
url: Links.GetPosts,
@@ -10,8 +10,8 @@ function get_page() {
1010
}
1111
}
1212
});
13-
};
13+
})();
1414

15-
var $Post = $("#my_posts")
15+
//var $Post = $("#my_posts")
1616

17-
$Post.click(get_page());
17+
//$Post.click(get_page());

EPAM.MyBlog.UI.Web/Views/Account/DeleteAc.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
}
66
<div class="col-sm-12 title">
77

8-
<div class="col-sm-6 col-md-6 col-lg-6 col-sx-6 ">
8+
<div class="col-sm-6 col-md-6 col-lg-6 col-sx-6 col-sm-offset-4 col-md-offset-4 col-sx-offset-4 col-lg-offset-4">
99
<p>Удаление аккаунта </p>
1010
</div>
1111
</div>
Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@model IEnumerable<EPAM.MyBlog.UI.Web.Models.UserAdminModel>
2+
@{int c = 0;}
23

34
<div class="col-sm-12 title">
45

@@ -7,8 +8,10 @@
78
</div>
89
</div>
910

10-
<table class="table table-condensed">
11+
<table class="table table-hover">
12+
<thead>
1113
<tr>
14+
<th>№</th>
1215
<th>
1316
@Html.DisplayNameFor(model => model.Name)
1417
</th>
@@ -18,13 +21,15 @@
1821
<th>
1922
@Html.DisplayNameFor(model => model.Role)
2023
</th>
21-
<th></th>
2224
</tr>
25+
</thead>
2326
<tbody>
2427
@foreach (var item in Model) {
28+
c++;
2529
<tr>
30+
<th scope="row">@c</th>
2631
<td>
27-
@Html.ActionLink(item.Name, "UserInfo","Account",new {name = item.Name}, null)
32+
@Html.ActionLink(item.Name, "UserInfo", "Account" ,new {name = item.Name}, null)
2833
</td>
2934
<td>
3035
@Html.DisplayFor(modelItem => item.Email)
@@ -34,9 +39,10 @@
3439
</td>
3540
<td>
3641
@Html.ActionLink("Посты", "UserPosts", new { name=item.Name }) |
37-
@Html.ActionLink("Комменты", "UserComments", new { name=item.Name }) |
38-
</td>
39-
</tr>
42+
@Html.ActionLink("Комменты", "UserComments", new { name=item.Name })
43+
</td>
44+
</tr>
4045
}
46+
4147
</tbody>
4248
</table>

EPAM.MyBlog.UI.Web/Views/Admin/UserComments.cshtml

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,30 @@
99
</div>
1010

1111

12-
<div class="row">
13-
<div class="col-md-6 col-sm-6 col-lg-6 col-sx-6">Комментарий</div>
14-
<div class="col-md-3 col-sm-3 col-lg-3 col-sx-3">Время</div>
15-
</div>
12+
<table class="table table-hover">
13+
<thead>
14+
<tr>
15+
<th>№</th>
16+
<th>Комментарий</th>
17+
<th>Время</th>
18+
</tr>
19+
</thead>
20+
<tbody>
21+
@foreach (var item in Model)
22+
{ c++;
23+
<tr>
24+
<th scope="row">@c</th>
25+
<td>@Html.DisplayFor(modelItem => item.Text)</td>
26+
<td>@Html.DisplayFor(modelItem => item.Time)</td>
27+
<td>@Html.ActionLink("К посту", "Posts", new { id=item.Post_ID }) |
28+
@Html.ActionLink("Delete", "DeleteComment", new { id=item.ID, name = @ViewData["name"] })</td>
29+
</tr>
30+
}
31+
32+
</tbody>
33+
34+
</table>
1635

17-
@foreach (var item in Model)
18-
{ c++;
19-
<div class="row">
20-
<div class="col-md-6 col-sm-6 col-lg-6 col-sx-6">@Html.DisplayFor(modelItem => item.Text)</div>
21-
<div class="col-md-3 col-sm-3 col-lg-3 col-sx-3">@Html.DisplayFor(modelItem => item.Time)</div>
22-
<div class="col-md-3 col-sm-3 col-lg-3 col-sx-3">@Html.ActionLink("К посту", "Posts", new { id=item.Post_ID }) |
23-
@Html.ActionLink("Delete", "DeleteComment", new { id=item.ID, name = @ViewData["name"] })</div>
24-
</div>
25-
26-
}
2736

2837

2938
@if(c==0)

EPAM.MyBlog.UI.Web/Views/Admin/UserPosts.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@{ int c = 0;}
44

55
<div class="row">
6-
<div class="col-md-12 col-sm-12 col-lg-12 col-sx-12 title">Записи</div>
6+
<div class="col-md-12 col-sm-12 col-lg-12 col-sx-12 title">Записи @ViewData["name"]</div>
77
</div>
88

99

@@ -13,7 +13,7 @@
1313

1414
<div class="row list">
1515
<div class="col-sm-10 col-md-10 col-lg-10 col-sx-10">
16-
@Html.ActionLink(@item.Title, "Posts", new { id=item.Id })
16+
@Html.ActionLink(@item.Title, "Posts", "Post", new { id=item.Id }, null)
1717
</div>
1818

1919
<div class="col-sm-2 col-md-2 col-lg-2 col-sx-2">

EPAM.MyBlog.UI.Web/Views/Admin/Users.cshtml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@model IEnumerable<EPAM.MyBlog.UI.Web.Models.UserAdminModel>
2-
2+
@{ int c = 0;}
33

44
<div class="col-sm-12 title">
55

@@ -15,8 +15,10 @@
1515
@using (Html.BeginForm("Users", "Admin", FormMethod.Post))
1616
{
1717

18-
<table class="table table-condensed">
18+
<table class="table table-hover">
19+
<thead>
1920
<tr>
21+
<th>№</th>
2022
<th>
2123
@Html.DisplayNameFor(model => model.Name)
2224
</th>
@@ -28,9 +30,12 @@
2830
</th>
2931
<th></th>
3032
</tr>
33+
</thead>
3134
<tbody>
3235
@foreach (var item in Model) {
36+
c++;
3337
<tr>
38+
<th scope="row">@c</th>
3439
<td>
3540
@Html.ActionLink(item.Name, "UserInfo", "Account" ,new {name = item.Name}, null)
3641
</td>
@@ -42,7 +47,7 @@
4247
</td>
4348
<td>
4449
@Html.ActionLink("Посты", "UserPosts", new { name=item.Name }) |
45-
@Html.ActionLink("Комменты", "UserComments", new { name=item.Name }) |
50+
@Html.ActionLink("Комменты", "UserComments", new { name=item.Name })
4651
</td>
4752
@if(User.Identity.Name != item.Name){
4853
<td>

EPAM.MyBlog.UI.Web/Views/Post/Favorite.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
{
1414
c++;
1515
<div class="row list">
16-
<div class="col-sm-8 col-md-8 col-lg-8 col-sx-8">
16+
<div class="col-sm-10 col-md-10 col-lg-10 col-sx-10">
1717
@Html.ActionLink(@item.Title, "Posts", new { id=item.Id })
1818
</div>
19-
<div class="col-sm-4 col-md-4 col-lg-4 col-sx-4">
19+
<div class="col-sm-2 col-md-2 col-lg-2 col-sx-2">
2020
@Html.ActionLink("Удалить", "DeleteFavorite", new { id=item.Id }, new { @class="btn btn-default"})
2121
</div>
2222
</div>

EPAM.MyBlog.UI.Web/Views/Post/Posts.cshtml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,16 @@
2222
<div>
2323
<p><strong>Дата:</strong> @Html.DisplayFor(model => model.Time)</p>
2424
</div>
25-
if((string)ViewData["Check"] == "True")
26-
{
27-
<button type="submit" name="action" value="AddFav" hidden="hidden">В избранное</button>
28-
<p>Данная статья находится в @Html.ActionLink(" избранном","Favorite", "Post")</p>
29-
}
30-
else{
31-
<button type="submit" name="action" value="AddFav">В избранное</button>
25+
if(User.Identity.IsAuthenticated){
26+
27+
if((string)ViewData["Check"] == "True")
28+
{
29+
<button type="submit" name="action" value="AddFav" hidden="hidden">В избранное</button>
30+
<p>Данная статья находится в @Html.ActionLink(" избранном","Favorite", "Post")</p>
31+
}
32+
else{
33+
<button type="submit" name="action" value="AddFav">В избранное</button>
34+
}
3235
}
3336
}
3437

EPAM.MyBlog.UI.Web/Views/Post/UserPosts.cshtml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@
33
@{ int c = 0;}
44

55
<div class="row">
6-
<p class="title title-top">Записи</p>
6+
<div class="col-md-12 col-sm-12 col-lg-12 col-sx-12 title">Записи @ViewData["name"]</div>
77
</div>
8-
<table>
98

10-
@foreach (var item in Model)
11-
{
12-
c++;
13-
<tr>
14-
<td>
15-
@Html.ActionLink(@item.Title, "Posts", new { id=item.Id })
16-
17-
</td>
189

19-
</tr>
2010

11+
@foreach (var item in Model)
12+
{ c++;
13+
14+
<div class="row list">
15+
<div class="col-sm-10 col-md-10 col-lg-10 col-sx-10">
16+
@Html.ActionLink(@item.Title, "Posts", new { id=item.Id })
17+
</div>
18+
<div class="col-sm-2 col-md-2 col-lg-2 col-sx-2">
19+
@Html.ActionLink("Читать", "Posts", "Post", new { id=item.Id }, new {@class="btn btn-default"})
20+
</div>
21+
</div>
22+
2123
}
2224

23-
</table>
24-
2525

2626
@if(c==0)
2727
{
@@ -31,3 +31,5 @@
3131
</div>
3232
</div>
3333
}
34+
35+
@Html.ActionLink("К пользователям", "Users")

EPAM.MyBlog.UI.Web/Views/Search/Result.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@model List<EPAM.MyBlog.UI.Web.Models.PresentPostModel>
22
@{
3-
WebGrid grid = new WebGrid(ModelcanPage:true, rowsPerPage:15);
3+
WebGrid grid = new WebGrid(Model, canPage:true, rowsPerPage:15);
44
grid.Pager(WebGridPagerModes.NextPrevious);
55
}
66

0 commit comments

Comments
 (0)