Browse Source

SortAllJobsBasedOnCreateDate

master
Neda Abedi 10 years ago
parent
commit
8b34454719
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      Sevomin.WebFrontend/Views/God/Index.cshtml

+ 3
- 3
Sevomin.WebFrontend/Views/God/Index.cshtml View File

@ -120,7 +120,7 @@
<div class="col-md-12 rtl"> <div class="col-md-12 rtl">
<h2>اعلام آمادگی های فرصت های شغلی</h2> <h2>اعلام آمادگی های فرصت های شغلی</h2>
<div class="panel-group" id="accordion"> <div class="panel-group" id="accordion">
@foreach (Sevomin.Models.Avalin avalin in Sevomin.Models.SevominDbContext.Current.Users.OfType<Sevomin.Models.Avalin>().ToList().OrderByDescending(p => p.CreateDate)
@foreach (Sevomin.Models.Avalin avalin in Sevomin.Models.SevominDbContext.Current.Users.OfType<Sevomin.Models.Avalin>().ToList())
{ {
if (avalin.Jobs.Count == 0) if (avalin.Jobs.Count == 0)
{ continue; } { continue; }
@ -131,8 +131,8 @@
</a> </a>
</h4> </h4>
</div> </div>
@foreach (var job in avalin.Jobs)
{
@foreach (var job in avalin.Jobs.OrderByDescending(a => a.CreateDate))
{
if (job.Applications.Count == 0) if (job.Applications.Count == 0)
{ continue; } { continue; }
<div id="@avalin.Id" class="panel-collapse collapse in"> <div id="@avalin.Id" class="panel-collapse collapse in">


Loading…
Cancel
Save