示例#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));
 }