public ActionResult DeleteConfirmed(int id)
        {
            ArtGalleryMuseum artGalleryMuseum = db.ArtGalleryMuseums.Find(id);

            db.ArtGalleryMuseums.Remove(artGalleryMuseum);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,Theme,Sub_Theme,Feature_Name,Co_ordinates")] ArtGalleryMuseum artGalleryMuseum)
 {
     if (ModelState.IsValid)
     {
         db.Entry(artGalleryMuseum).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(artGalleryMuseum));
 }
        public ActionResult Create([Bind(Include = "Id,Theme,Sub_Theme,Feature_Name,Co_ordinates")] ArtGalleryMuseum artGalleryMuseum)
        {
            if (ModelState.IsValid)
            {
                db.ArtGalleryMuseums.Add(artGalleryMuseum);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(artGalleryMuseum));
        }
        // GET: ArtGalleryMuseums/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ArtGalleryMuseum artGalleryMuseum = db.ArtGalleryMuseums.Find(id);

            if (artGalleryMuseum == null)
            {
                return(HttpNotFound());
            }
            return(View(artGalleryMuseum));
        }