public IActionResult MaterialsToApprove() { ConfigureBreadcrumbs(); var materialsToApprove = _materialsService.GetMaterialsToApprove(); var vm = materialsToApprove.Select(m => new MaterialToApproveViewModel { MaterialId = m.MaterialId, Name = m.Name, Description = m.Description, CreatorUsername = m.Creator.Username, UploadDate = m.UploadDate } ).ToList(); return(View(vm)); }