|
@ -160,7 +160,7 @@ namespace Sevomin.WebFrontend.Controllers |
|
|
{ |
|
|
{ |
|
|
return View(_jobRepository.ListAll() |
|
|
return View(_jobRepository.ListAll() |
|
|
.Where(d => d.ExpireDate >= DateTime.Now) |
|
|
.Where(d => d.ExpireDate >= DateTime.Now) |
|
|
.OrderByDescending(d => d.ExpireDate) |
|
|
|
|
|
|
|
|
.OrderByDescending(d => d.CreateDate).ThenByDescending(d => d.ExpireDate) |
|
|
.ToList() |
|
|
.ToList() |
|
|
.Select(j => new JobMiniViewModel(j)).ToList()); |
|
|
.Select(j => new JobMiniViewModel(j)).ToList()); |
|
|
} |
|
|
} |
|
|