public ActionResult Create(GalleryAllPhoto galleryAllPhotoSingle)
 {
     if (galleryAllPhotoSingle.ImgFile.ContentLength > 0)
     {
         var fileNm   = Path.GetFileName(galleryAllPhotoSingle.ImgFile.FileName);
         var saveArea = Path.Combine(Server.MapPath("~/Public/images"), fileNm);
         galleryAllPhotoSingle.ImgFile.SaveAs(saveArea);
         galleryAllPhotoSingle.Image = fileNm;
         db.galleryAllPhotos.Add(galleryAllPhotoSingle);
         db.SaveChanges();
     }
     return(RedirectToAction("Index"));
 }
 public ActionResult Edit(GalleryAllPhoto galleryAllPhotoSingle)
 {
     db.Entry(galleryAllPhotoSingle).State = System.Data.Entity.EntityState.Modified;
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }