Ejemplo n.º 1
0
        public IList <FavoriteQueryContract> GetFavoriteQueries(long?labelId, BookTypeEnumContract bookType, QueryTypeEnumContract queryType, string filterByTitle, int start, int count)
        {
            var user          = TryGetUser();
            var bookTypeEnum  = Mapper.Map <BookTypeEnum>(bookType);
            var queryTypeEnum = Mapper.Map <QueryTypeEnum>(queryType);

            var dbResult = m_favoritesRepository.GetFavoriteQueries(labelId, bookTypeEnum, queryTypeEnum, filterByTitle, start, count, user.Id);

            return(Mapper.Map <IList <FavoriteQueryContract> >(dbResult));
        }