Esempio n. 1
0
        public ActionResult DeleteConfirmed(int id)
        {
            User_Feedback user_Feedback = db.User_Feedback.Find(id);

            db.User_Feedback.Remove(user_Feedback);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Esempio n. 2
0
 public ActionResult Edit([Bind(Include = "REGID,Fname,Lname,Wing,Flat_No,Feedback_Detail")] User_Feedback user_Feedback)
 {
     if (ModelState.IsValid)
     {
         db.Entry(user_Feedback).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(user_Feedback));
 }
Esempio n. 3
0
        public ActionResult Create([Bind(Include = "REGID,Fname,Lname,Wing,Flat_No,Feedback_Detail")] User_Feedback user_Feedback)
        {
            if (ModelState.IsValid)
            {
                db.User_Feedback.Add(user_Feedback);
                db.SaveChanges();
                return(RedirectToAction("User_Home", "Login_User"));
            }

            return(View(user_Feedback));
        }
Esempio n. 4
0
        // GET: User_Feedback/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            User_Feedback user_Feedback = db.User_Feedback.Find(id);

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