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

            return View(personmodel);
        }