Пример #1
0
        public IActionResult GetFavoriteLabelsWithBooksAndCategories([FromQuery] BookTypeEnumContract?bookType, [FromQuery] ProjectTypeContract?projectType)
        {
            if (bookType == null)
            {
                return(BadRequest("Missing required parameter BookType"));
            }

            var result = m_favoriteManager.GetFavoriteLabelsWithBooksAndCategories(bookType.Value, projectType);

            return(Ok(result));
        }
Пример #2
0
 public IList <FavoriteLabelWithBooksAndCategories> GetFavoriteLabelsWithBooksAndCategories(BookTypeEnumContract bookType)
 {
     return(m_favoriteManager.GetFavoriteLabelsWithBooksAndCategories(bookType));
 }