public ActionResult Create(BlogPhotoArea blogPhotoAreaSingle)
        {
            if (blogPhotoAreaSingle.ImgFile.ContentLength > 0)
            {
                var fileNm   = Path.GetFileName(blogPhotoAreaSingle.ImgFile.FileName);
                var saveArea = Path.Combine(Server.MapPath("~/Public/images"), fileNm);
                blogPhotoAreaSingle.ImgFile.SaveAs(saveArea);
                blogPhotoAreaSingle.Image = fileNm;
                db.blogPhotoAreas.Add(blogPhotoAreaSingle);
                db.SaveChanges();
            }

            return(RedirectToAction("Index"));
        }
 public ActionResult Edit(BlogPhotoArea blogPhotoAreaSingle)
 {
     db.Entry(blogPhotoAreaSingle).State = System.Data.Entity.EntityState.Modified;
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }