コード例 #1
0
        public async Task <string> SignInUser()
        {
            ParseAuthorizationHeader();
            User user = new User {
                Name = _name, Psw = _psw
            };

            if (!await _sqlDal.IsUserExist(user))
            {
                //throw exception
            }
            return(CreateToken(user));
        }