public ActionResult List(IntList ids) { var attachments = new PaginatedList <AttachmentInfo>(ids .Select(x => SchoolLocator.AttachementService.GetAttachmentById(x)) .Select(x => SchoolLocator.AttachementService.TransformToAttachmentInfo(x)) , 0, ids.Count); return(Json(attachments.Transform(x => AttachmentViewData.Create(x, Context)))); }