public ActionResult DeleteConfirmed(int id)
        {
            Hotel_Owner hotel_Owner = db.Hotel_Owner.Find(id);

            db.Hotel_Owner.Remove(hotel_Owner);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Owner_id,Account_id,FirstName,LastName,Password,Contact_detail")] Hotel_Owner hotel_Owner)
 {
     if (ModelState.IsValid)
     {
         db.Entry(hotel_Owner).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(hotel_Owner));
 }
        public ActionResult Create([Bind(Include = "Owner_id,Account_id,FirstName,LastName,Password,Contact_detail")] Hotel_Owner hotel_Owner)
        {
            if (ModelState.IsValid)
            {
                db.Hotel_Owner.Add(hotel_Owner);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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