Exemplo n.º 1
0
        public ActionResult Check(string name, string pwd)
        {
            Dictionary <string, object> dic = new Dictionary <string, object>();
            var C = _service.C();

            using (mangerEntities db = new mangerEntities())
            {
                List <userChecke> list = db.userChecke.Where(u => u.userLog == name && u.userPwd == pwd).ToList();
                dic.Add("res", list.Count > 0);
                dic.Add("res1", C);
                Session["name"] = name;
            }

            return(Json(dic, JsonRequestBehavior.AllowGet));
        }