public IList <FavoriteBaseInfoContract> GetFavoriteItems(long?labelId, FavoriteTypeContract?filterByType, string filterByTitle, FavoriteSortContract sort, int start, int count) { var user = TryGetUser(); var typeFilter = Mapper.Map <FavoriteTypeEnum?>(filterByType); var dbResult = m_favoritesRepository.GetFavoriteItems(labelId, typeFilter, filterByTitle, sort, start, count, user.Id); return(Mapper.Map <IList <FavoriteBaseInfoContract> >(dbResult)); }