public PartialViewResult UploadImageView(Guid uploadid) { ViewBag.Guid = uploadid; IList <AttachmentVModel> list = Attachments.AttachmentInfosToVModels(Attachments.GetAttachmentByGuid(uploadid)); return(PartialView(list)); }
public ActionResult Index(int?page) { int pageIndex = page.HasValue ? page.Value : 1; int pageSize = PageConfig.BackstagePageSize; int count, pageCount; var result = Attachments.AttachmentInfosToVModels(Attachments.GetAttachmentPageList(pageIndex, pageSize, null, null, out pageCount, out count)); PagedList <AttachmentVModel> pl = result.ToPagedList(pageIndex, pageSize); pl.TotalItemCount = count; pl.CurrentPageIndex = pageIndex; return(View(pl)); }