// GET: Pending public async Task <ActionResult> Index() { var pending_notices = await db.GetPendingAsync(0, 6); List <PendingNoticeViewModel> vmlist = new List <PendingNoticeViewModel>(); foreach (var n in pending_notices) { vmlist.Add(NoticeMappings.To <PendingNoticeViewModel>(n)); } return(View(vmlist)); }