Skip to content

Commit fc6dce4

Browse files
committed
Search webgrid
1 parent 369c56f commit fc6dce4

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@
1313
2015-01-28 00:30:01,557 [8] INFO EPAM.MyBlog.UI.Web.Controllers.AdminController [(null)] - �������� ����� cd2dde95-56e3-418d-9595-83f0792604bc
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
16+
2015-01-28 02:19:06,245 [224] INFO EPAM.MyBlog.UI.Web.Controllers.FilesController [(null)] - �������� ������� �� ���� ��� ������������: Admin2

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@
1313
2015-01-28 00:30:01,557 [8] INFO EPAM.MyBlog.UI.Web.Controllers.AdminController [(null)] - �������� ����� cd2dde95-56e3-418d-9595-83f0792604bc
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
16+
2015-01-28 02:19:06,245 [224] INFO EPAM.MyBlog.UI.Web.Controllers.FilesController [(null)] - �������� ������� �� ���� ��� ������������: Admin2

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
@model IEnumerable<EPAM.MyBlog.UI.Web.Models.PresentPostModel>
1+
@model List<EPAM.MyBlog.UI.Web.Models.PresentPostModel>
22
@{
3-
WebGrid grid = new WebGrid(Model);
3+
WebGrid grid = new WebGrid(ModelcanPage:true, rowsPerPage:15);
4+
grid.Pager(WebGridPagerModes.NextPrevious);
45
}
56

67
<div class="row">
78
<div class="col-md-12 col-sm-12 col-lg-12 col-sx-12 title">Результаты поиска</div>
89
</div>
910

10-
@if(Model != null)
11+
@if (Model.Count != 0)
1112
{
1213
@grid.GetHtml(columns: new [] {
1314
grid.Column("Title",
@@ -26,4 +27,6 @@
2627
else
2728
{
2829
<p>Поиск не дал результатов</p>
29-
}
30+
}
31+
32+
@Html.ActionLink("Вернуться к поиску", "Index", "Search")

EPAM.MyBlog.v11.suo

36 KB
Binary file not shown.

0 commit comments

Comments
 (0)