コード例 #1
0
        public ActionResult <List <MenuModel> > ConsultaMenu([FromRoute] int userId)
        {
            try
            {
                var permissao = _profissionalService.ConsultaMenu(userId);

                return(MenuModel.CreateList(permissao.Itens));
            }
            catch (Exception e)
            {
                return(BadRequest(e.Message));
            }
        }