public ActionResult RequestedPartimsWidget(int fileId) { if (!_studentFacade.IsFileFromStudent(User.Identity.Name, fileId)) { return(RedirectToAction("Index")); } var models = _studentFacade.GetPartims(fileId, PartimMode.Requested) .ProjectTo <PartimViewModel>(); return(PartialView(models.ToArray())); }