public ActionResult DeleteConfirmed(int id)
        {
            Master_Gender master_Gender = db.Master_Gender.Find(id);

            db.Master_Gender.Remove(master_Gender);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "GenderId,Gender")] Master_Gender master_Gender)
 {
     if (ModelState.IsValid)
     {
         db.Entry(master_Gender).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(master_Gender));
 }
        public ActionResult Create([Bind(Include = "GenderId,Gender")] Master_Gender master_Gender)
        {
            if (ModelState.IsValid)
            {
                db.Master_Gender.Add(master_Gender);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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