コード例 #1
0
 public ActionResult AddGalleryDetail(GalleryDetail galleryDetail, HttpPostedFileBase file)
 {
     if (file != null)
     {
         socialService.InsertGalleryDetail(galleryDetail, file);
         socialService.Save();
     }
     return(RedirectToAction("GalleryDetails", new { id = galleryDetail.GalleryID }));
 }