public ActionResult Edit(UnitFeature unitfeature)
 {
     if (ModelState.IsValid)
     {
         db.Entry(unitfeature).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     ViewBag.UnitId = new SelectList(db.Units, "UnitId", "Description", unitfeature.UnitId);
     return View(unitfeature);
 }
        public ActionResult Create(UnitFeature unitfeature)
        {
            if (ModelState.IsValid)
            {
                db.UnitFeatures.Add(unitfeature);
                db.SaveChanges();
                return RedirectToAction("Index");  
            }

            ViewBag.UnitId = new SelectList(db.Units, "UnitId", "Description", unitfeature.UnitId);
            return View(unitfeature);
        }