public ActionResult List() { try { IList<CAccount> listEmp = new DaoAccount().getAcountList(null); } catch (Exception e) { throw new Exception(e.Message); } return PartialView("~/Views/Account/List.cshtml"); }
public JObject LoginProcess() { JObject jsonObj = new JObject(); string strId = Request.Form["id"]; DaoAccount daoAcount = new DaoAccount(); CAccount emp = daoAcount.getAcount(Request.Form["id"], Request.Form["passwd"]); if (emp == null) { jsonObj.Add("RESULT", "FAIL"); jsonObj.Add("MSG", "해당되는 사용자가 없습니다."); } else { LoginProcess(emp); jsonObj.Add("RESULT", "OK"); } return jsonObj; }