Exemplo n.º 1
0
        public IHttpActionResult ListTop8ProductsOfAllCategories()
        {
            List <CategoriaDTO> categorias = new List <CategoriaDTO>();

            try
            {
                categorias = _business.ListTop8ProductsOfAllCategories();
            }
            catch (Exception ex)
            {
                return(InternalServerError(ex));
            }

            return(Ok(categorias));
        }