示例#1
0
        public IHttpActionResult Login(LoginRequest loginRequest)
        {
            UserLoginManager     userLoginManager     = new UserLoginManager();
            AuthenticatedUserDto authenticatedUserDto = userLoginManager.TryLogin(loginRequest);

            if (authenticatedUserDto == null)
            {
                return(Unauthorized());
            }

            return(Ok(authenticatedUserDto));
        }