public List <FavoriteBaseInfoContract> GetFavoriteItems([FromQuery] int?start, [FromQuery] int?count, [FromQuery] long?filterByLabelId, [FromQuery] FavoriteTypeEnumContract?filterByType, [FromQuery] string filterByTitle, [FromQuery] FavoriteSortEnumContract?sort) { var sortValue = sort ?? FavoriteSortEnumContract.TitleAsc; var result = m_favoriteManager.GetFavoriteItems(start, count, filterByLabelId, filterByType, filterByTitle, sortValue); SetTotalCountHeader(result.TotalCount); return(result.List); }
public IList <FavoriteBaseInfoContract> GetFavoriteItems(long?labelId, FavoriteTypeContract?filterByType, string filterByTitle, FavoriteSortContract sort, int start, int count) { return(m_favoriteManager.GetFavoriteItems(labelId, filterByType, filterByTitle, sort, start, count)); }