public ActionResult Carousel() { ForumAlbumVM data = new ForumAlbumVM(); data.Paging = new ForPaging(1); data.FileList = service.GetDataList(data.Paging); return(View(data)); }
public ActionResult List(int Page = 1) { ForumAlbumVM data = new ForumAlbumVM(); data.Paging = new ForPaging(Page); data.FileList = service.GetDataList(data.Paging); return(PartialView(data)); }
public ActionResult Upload([Bind(Include = "upload")] ForumAlbumVM Data) { if (Data.Upload != null) { string Url = Path.Combine(Server.MapPath("~/Upload/"), Data.Upload.FileName); Data.Upload.SaveAs(Url); service.UploadFile(Data.Upload.FileName, Url, Data.Upload.ContentLength, Data.Upload.ContentType, User.Identity.Name); } return(RedirectToAction("Index")); }