public ActionResult Edit([Bind(Include = "Id,Name")] Army army)
 {
     if (ModelState.IsValid)
     {
         db.Entry(army).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(army));
 }
 public ActionResult Edit([Bind(Include = "Id,Name,Count,ArmyId")]  WebUI.DBEntities.Type type)
 {
     if (ModelState.IsValid)
     {
         db.Entry(type).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.ArmyId = new SelectList(db.Armys, "Id", "Name", type.ArmyId);
     return(View(type));
 }