public ActionResult Edit(Thing thing)
 {
     if (ModelState.IsValid)
     {
         db.Entry(thing).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(thing);
 }
        public ActionResult Create(Thing thing)
        {
            if (ModelState.IsValid)
            {
                db.Things.Add(thing);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(thing);
        }