コード例 #1
0
 public async Task <ViewResult> Index()
 {
     return(View((await _designSupplyRequestService.GetAllAsync())
                 .OrderBy(d => d.StatusSupply)
                 .ThenBy(d => d.DesiredDate).Select(s =>
     {
         s.Design = _designService.GetByIdAsync(s.ComponentId).Result;
         return s;
     })));
 }