public ActionResult Create(ProductiveSector productivesector)
        {
            if (ModelState.IsValid)
            {
                db.ProductiveSectors.Add(productivesector);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

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