Пример #1
0
        public async Task <IActionResult> GetLogin(string login, string senha)
        {
            try
            {
                var results = await _user.GetUsuarioAsyncByLogin(login, senha);

                return(Ok(results));
            }
            catch (System.Exception)
            {
                return(this.StatusCode(StatusCodes.Status500InternalServerError, "Falha no Banco de dados"));
            }
        }