public ActionResult Create(PhoneTypes phonetypes)
        {
            try
            {
                    var sObj = new PhoneTypes()
                    {
                        PhoneType = phonetypes.PhoneType
                    };
                    db.tabPhoneTypes.Add(sObj);
                    db.SaveChanges();
                    return PartialView("Create");

            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
 public ActionResult Edit(PhoneTypes phonetypes)
 {
     if (ModelState.IsValid)
     {
         PhoneTypes pObj = db.tabPhoneTypes.Find(phonetypes.PhoneTypeId);
         pObj.PhoneType = phonetypes.PhoneType;
         db.Entry(pObj).State = EntityState.Modified;
         db.SaveChanges();
         return PartialView("Create");
     }
     return PartialView(phonetypes);
 }