Exemplo n.º 1
0
        public async Task <ActionResult <Category> > GetCategory(int id)
        {
            var category = await categoryDAO.GetByIdAsync(id);

            if (category == null)
            {
                return(NotFound());
            }

            return(category);
        }