Esempio n. 1
0
        public ActionResult DeleteConfirmed(int id)
        {
            UserQuotationDetail userquotationdetail = db.UserQuotationDetails.Find(id);

            db.UserQuotationDetails.Remove(userquotationdetail);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Esempio n. 2
0
        //
        // GET: /UserQuotationDetailAdmin/Details/5

        public ActionResult Details(int id = 0)
        {
            UserQuotationDetail userquotationdetail = db.UserQuotationDetails.Find(id);

            if (userquotationdetail == null)
            {
                return(HttpNotFound());
            }
            return(View(userquotationdetail));
        }
Esempio n. 3
0
 public ActionResult Edit(UserQuotationDetail userquotationdetail)
 {
     if (ModelState.IsValid)
     {
         db.Entry(userquotationdetail).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(userquotationdetail));
 }
Esempio n. 4
0
        public ActionResult Create(UserQuotationDetail userquotationdetail)
        {
            if (ModelState.IsValid)
            {
                db.UserQuotationDetails.Add(userquotationdetail);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(userquotationdetail));
        }