public ActionResult Create(packagemaster packagemaster)
        {
            if (ModelState.IsValid)
            {
                db.packagemasters.Add(packagemaster);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

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