예제 #1
0
        public async Task <IActionResult> GetFuncionarioBySetor(string nomeSetor)
        {
            try
            {
                var funcionario = await _fservice.FindFuncionarioBySetor(nomeSetor);

                return(Ok(funcionario));
            }
            catch (ApplicationException e)
            {
                return(BadRequest(e.Message));
            }
        }