Пример #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            anupasthit_bekti anupasthit_bekti = db.anupasthit_bekti.Find(id);

            db.anupasthit_bekti.Remove(anupasthit_bekti);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Пример #2
0
 public ActionResult Edit([Bind(Include = "AB_ID,senior_id")] anupasthit_bekti anupasthit_bekti)
 {
     if (ModelState.IsValid)
     {
         db.Entry(anupasthit_bekti).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.senior_id = new SelectList(db.table_house_senior_details, "senior_id", "Education", anupasthit_bekti.senior_id);
     return(View(anupasthit_bekti));
 }
Пример #3
0
        public ActionResult Create([Bind(Include = "AB_ID,senior_id")] anupasthit_bekti anupasthit_bekti)
        {
            if (ModelState.IsValid)
            {
                db.anupasthit_bekti.Add(anupasthit_bekti);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            ViewBag.senior_id = new SelectList(db.table_house_senior_details, "senior_id", "Home_no", anupasthit_bekti.senior_id);
            return(View(anupasthit_bekti));
        }
Пример #4
0
        // GET: anupasthitbekti/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            anupasthit_bekti anupasthit_bekti = db.anupasthit_bekti.Find(id);

            if (anupasthit_bekti == null)
            {
                return(HttpNotFound());
            }
            return(View(anupasthit_bekti));
        }
Пример #5
0
        // GET: anupasthitbekti/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            anupasthit_bekti anupasthit_bekti = db.anupasthit_bekti.Find(id);

            if (anupasthit_bekti == null)
            {
                return(HttpNotFound());
            }
            ViewBag.senior_id = new SelectList(db.table_house_senior_details, "senior_id", "Home_no", anupasthit_bekti.senior_id);
            return(View(anupasthit_bekti));
        }