Exemplo n.º 1
0
        public IActionResult GetByPk(int id)
        {
            var product = _menusService.GetByPk(id);

            if (product == null)
            {
                return(NotFound());
            }
            return(Ok(Mapper.Map <MenusDto>(product)));
        }