private void LoadViewBag(OwnerShip ownership) { ViewBag.District_Id = new SelectList(db.Districts.OrderBy(o => o.Name), "Id", "Name", ownership.District_Id); ViewBag.Cities_Id = new SelectList(db.Cities, "Id", "Name", ownership.Cities_Id); ViewBag.Operations_Id = new SelectList(db.Operations.OrderBy(o => o.Name), "Id", "Name", ownership.Operations_Id); ViewBag.Provinces_Id = new SelectList(db.Provinces.OrderBy(o => o.Name), "Id", "Name", ownership.Provinces_Id); ViewBag.TypeOwnerShips_Id = new SelectList(db.TypeOwnerShips.OrderBy(o => o.Name), "Id", "Name", ownership.TypeOwnerShips_Id); ViewBag.StatusOwnerShips_Id = new SelectList(db.StatusOwnerShips.OrderBy(o => o.Name), "Id", "Name", ownership.StatusOwnerShips_Id); }