Ejemplo n.º 1
0
        public async Task <IActionResult> Login([FromBody] LoginRequestInfo info)
        {
            try
            {
                LoginResponseInfo response = await _usersManager.AuthenticateUser(info);

                if (response != null)
                {
                    return(Ok(response));
                }
                else
                {
                    return(BadRequest());
                }
            }
            catch (Exception ex)
            {
                return(BadRequest());
            }
        }