public string Index() { int id = (int)Session["idKH"]; ViewData["info"] = new ClientInfoDao().LoadInfo(id); var result = new ClientInfoDao().LoadInfo(id); return(JsonConvert.SerializeObject(result)); }
public ActionResult Index() { if (Session["idKH"] != null) { int id = (int)Session["idKH"]; ViewData["info"] = new ClientInfoDao().LoadInfo(id); var result = new ClientInfoDao().LoadInfo(id); return(View()); } return(View()); //else //{ // return RedirectToAction("/Client/Login/Index"); //} }
public ClientInfoService() { dao = new ClientInfoDao(); }