Beispiel #1
0
        public ActionResult Create(entity_Issues entity_issues)
        {
            if (ModelState.IsValid)
            {
                db.entity_Issues.Add(entity_issues);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            ViewBag.PIN = new SelectList(db.entity_Place_Pin, "PIN", "Place_Name", entity_issues.PIN);
            return View(entity_issues);
        }
Beispiel #2
0
 public ActionResult Edit(entity_Issues entity_issues)
 {
     if (ModelState.IsValid)
     {
         db.Entry(entity_issues).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     ViewBag.PIN = new SelectList(db.entity_Place_Pin, "PIN", "Place_Name", entity_issues.PIN);
     return View(entity_issues);
 }