// GET: PN/Patient/Edit/5 public ActionResult Edit(int id) { var model = obj.SelectByID(id, out outmodel); ViewBag.GuardianRelation = new SelectList(Dropdowns.Relation, "Value", "Text", model.GuardianRelation); ViewBag.Gender = new SelectList(Dropdowns.Genders, "Value", "Text", model.Gender); return(View(model)); }