Ejemplo n.º 1
0
        public ActionResult Carousel()
        {
            ForumAlbumVM data = new ForumAlbumVM();

            data.Paging   = new ForPaging(1);
            data.FileList = service.GetDataList(data.Paging);
            return(View(data));
        }
Ejemplo n.º 2
0
        public ActionResult List(int Page = 1)
        {
            ForumAlbumVM data = new ForumAlbumVM();

            data.Paging   = new ForPaging(Page);
            data.FileList = service.GetDataList(data.Paging);
            return(PartialView(data));
        }
Ejemplo n.º 3
0
 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"));
 }