public ActionResult getbestlwr() { ViewBag.city_list_dp = new SelectList(gn.Get_City_list(), "Text", "Value"); // drop down for Crime catagry list ViewBag.crim_list_dp = new SelectList(gn.Get_Crime_List(), "Text", "Value"); return(View()); }
//public ActionResult Create(lawyer user) //{ // Session["userid"] = lwr.lwr_id; // Session["UserEmail"]=lwr.EMAIL; // Session["UserPassword"] =lwr.PASSWORD; // return RedirectToAction("edit_profile", "Lawyer"); // return View(user); //} // // GET: /Lawyer/Edit/5 public ActionResult Edit_Profile() { ViewBag.lawyer = getLoginLawyer(); int id = Convert.ToInt32(Session["userid"]); lawyer lawyer = db.lawyers.Find(id); if (lawyer == null) { return(RedirectToAction("SignIn", "user")); } law_catagry law_ct = new law_catagry(); ViewBag.categories = db.law_catagry.ToList(); ViewBag.statevalues = new SelectList(gn.Get_City_list(), "Text", "Value"); return(View(lawyer)); }