Example #1
0
        public ActionResult Create(TextOut textout)
        {
            if (ModelState.IsValid)
            {
                db.TextOuts.Add(textout);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(textout);
        }
Example #2
0
 public ActionResult Edit(TextOut textout)
 {
     if (ModelState.IsValid)
     {
         db.Entry(textout).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(textout);
 }