Exemplo n.º 1
0
        public ActionResult Edit(ItalianResturant ıtalianResturant)
        {
            if (ıtalianResturant.ImgFile.ContentLength > 0)
            {
                var fileNm   = Path.GetFileName(ıtalianResturant.ImgFile.FileName);
                var saveArea = Path.Combine(Server.MapPath("~/Public/images"), fileNm);
                ıtalianResturant.ImgFile.SaveAs(saveArea);
                ıtalianResturant.ItalianRestaurantimg = fileNm;
                db.Entry(ıtalianResturant).State      = System.Data.Entity.EntityState.Modified;
                db.SaveChanges();
            }

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

            return(RedirectToAction("Index"));
        }
 public ActionResult Edit(ContactForm contactFormSingle)
 {
     db.Entry(contactFormSingle).State = System.Data.Entity.EntityState.Modified;
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }
Exemplo n.º 4
0
 public ActionResult Edit(MenuImgAreaFirst menuImgAreaFirstSingle)
 {
     db.Entry(menuImgAreaFirstSingle).State = System.Data.Entity.EntityState.Modified;
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }
 public ActionResult Edit(LatestBlog LatestBlogsingle)
 {
     db.Entry(LatestBlogsingle).State = System.Data.Entity.EntityState.Modified;
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }
 public ActionResult Edit(AboutOurChef aboutOurChefSingle)
 {
     db.Entry(aboutOurChefSingle).State = System.Data.Entity.EntityState.Modified;
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }
 public ActionResult Edit(RomanticDeliciousRed romantic)
 {
     db.Entry(romantic).State = System.Data.Entity.EntityState.Modified;
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }
Exemplo n.º 8
0
 public ActionResult Edit(GalleryInteriorPhoto galleryInteriorPhotosingle)
 {
     db.Entry(galleryInteriorPhotosingle).State = System.Data.Entity.EntityState.Modified;
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }
Exemplo n.º 9
0
 public ActionResult Edit(BlogMostPopular blogMostPopularSingle)
 {
     db.Entry(blogMostPopularSingle).State = System.Data.Entity.EntityState.Modified;
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }
Exemplo n.º 10
0
 public ActionResult Edit(Settings seting)
 {
     db.Entry(seting).State = System.Data.Entity.EntityState.Modified;
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }