public ActionResult Edit(FirstModel firstmodel)
 {
     if (ModelState.IsValid)
     {
         context.Entry(firstmodel).State = EntityState.Modified;
         context.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(firstmodel);
 }
        public ActionResult Create(FirstModel firstmodel)
        {
            if (ModelState.IsValid)
            {
                context.FirstModels.Add(firstmodel);
                context.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(firstmodel);
        }