Ejemplo n.º 1
0
        public async Task <IActionResult> getByEmail(string email)
        {
            bool             commandResult    = false;
            AccountViewModel usuarioViewmodel = null;

            try
            {
                usuarioViewmodel = _accountQueries.getByIdentificador(email);
            }
            catch (System.Exception ex)
            {
                throw;
            }

            commandResult = true;

            return(commandResult ? (IActionResult)Ok(usuarioViewmodel) : (IActionResult)BadRequest());
        }