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

            return View(customertype);
        }