示例#1
0
        public IActionResult GetMeEmplooye([FromHeader] string authorization)
        {
            var employee = _jwtFactory.GetCurrentEmployeeUser();

            if (employee == null)
            {
                return(BadRequest("Funcionário não encontrado"));
            }
            return(Ok(employee));
        }