public IActionResult GetFavoriteLabeledBooks([FromQuery] IList <long> projectIds, [FromQuery] BookTypeEnumContract?bookType, [FromQuery] ProjectTypeContract?projectType) { if (bookType == null && projectIds.Count == 0) { return(BadRequest("Missing required parameter BookType or ProjectIds")); } if (projectIds.Count > MaxProjectIdsCount) { return(BadRequest($"Max ProjectIds count is limited to {MaxProjectIdsCount}")); } var result = m_favoriteManager.GetFavoriteLabeledBooks(projectIds, bookType, projectType); return(Ok(result)); }
public IList <FavoriteBookInfoContract> GetFavoriteLabeledBooks(IList <long> bookIds) { return(m_favoriteManager.GetFavoriteLabeledBooks(bookIds)); }