示例#1
0
        public JsonResult Login([CustomizeValidator] LogonQuery q)
        {
            var x = new Accounts()
            {
                Name     = q.Name,
                Password = q.Psw
            };
            var rt = _accountsRepository.Exists(x, new { x.Name, x.Password }, t => t.Name, t => t.Password);

            return(Json <string>(rt, ""));
        }