Пример #1
0
        public async Task <ActionResult> AuthLogin([FromQuery] QBAuthLoginRequest request)
        {
            var result = await _qBittorrent.AuthLogin(request.UserName, request.Password);

            if (result)
            {
                return(Ok("Ok."));
            }

            return(Ok("Fails."));
        }
Пример #2
0
 public async Task <ActionResult> AuthLoginPost([FromForm] QBAuthLoginRequest request)
 {
     return(await AuthLogin(request));
 }