public Contracts.SmallGroupCategory GetSmallGroupCategory(int categoryID)
        {
            Category category = new Category(categoryID);
            Contracts.SmallGroupCategoryMapper mapper = new Arena.Custom.HDC.WebService.Contracts.SmallGroupCategoryMapper();

            if (category.CategoryID == -1)
                throw new Arena.Services.Exceptions.ResourceNotFoundException("Invalid category ID");

            return mapper.FromArena(category);
        }
Esempio n. 2
0
        public Contracts.SmallGroupCategory GetSmallGroupCategory(int categoryID)
        {
            Category category = new Category(categoryID);

            Contracts.SmallGroupCategoryMapper mapper = new Arena.Custom.HDC.WebService.Contracts.SmallGroupCategoryMapper();


            if (category.CategoryID == -1)
            {
                throw new Arena.Services.Exceptions.ResourceNotFoundException("Invalid category ID");
            }

            return(mapper.FromArena(category));
        }