|
|
@ -26,7 +26,8 @@ namespace ServicesApi
|
|
|
|
|
|
|
|
|
|
|
|
public async Task<PaginationResult<QuoteDTO>> GetAllQuote()
|
|
|
|
public async Task<PaginationResult<QuoteDTO>> GetAllQuote()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
var quotes = quoteService.GetAllQuote().Result.items;
|
|
|
|
|
|
|
|
return new PaginationResult<QuoteDTO>(quotes.Count(), 0, 10, quotes.ToDto());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public async Task<PaginationResult<QuoteDTO>> GetAllQuoteLang(int index, int pageSize, int lang)
|
|
|
|
public async Task<PaginationResult<QuoteDTO>> GetAllQuoteLang(int index, int pageSize, int lang)
|
|
|
@ -41,17 +42,20 @@ namespace ServicesApi
|
|
|
|
|
|
|
|
|
|
|
|
public async Task<PaginationResult<QuoteDTO>> GetFavorites(int index, int pageSize, int UserId)
|
|
|
|
public async Task<PaginationResult<QuoteDTO>> GetFavorites(int index, int pageSize, int UserId)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
var quotes = quoteService.GetFavorites(index, pageSize, UserId).Result.items;
|
|
|
|
|
|
|
|
return new PaginationResult<QuoteDTO>(quotes.Count(), 0, 10, quotes.ToDto());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public async Task<PaginationResult<QuoteDTO>> GetInvalidQuote(int index, int pageSize, int lang)
|
|
|
|
public async Task<PaginationResult<QuoteDTO>> GetInvalidQuote(int index, int pageSize, int lang)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
var quotes = quoteService.GetInvalidQuote(index, pageSize, lang).Result.items;
|
|
|
|
|
|
|
|
return new PaginationResult<QuoteDTO>(quotes.Count(), 0, 10, quotes.ToDto());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public async Task<PaginationResult<QuoteDTO>> GetInvalidQuote(int index, int pageSize)
|
|
|
|
public async Task<PaginationResult<QuoteDTO>> GetInvalidQuote(int index, int pageSize)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
var quotes = quoteService.GetInvalidQuote(index, pageSize).Result.items;
|
|
|
|
|
|
|
|
return new PaginationResult<QuoteDTO>(quotes.Count(), 0, 10, quotes.ToDto());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public async Task<int> GetLastQuoteId()
|
|
|
|
public async Task<int> GetLastQuoteId()
|
|
|
@ -66,12 +70,14 @@ namespace ServicesApi
|
|
|
|
|
|
|
|
|
|
|
|
public async Task<PaginationResult<QuoteDTO>> GetSomeQuote(int index, int pageSize)
|
|
|
|
public async Task<PaginationResult<QuoteDTO>> GetSomeQuote(int index, int pageSize)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
var quotes = quoteService.GetSomeQuote(index, pageSize).Result.items;
|
|
|
|
|
|
|
|
return new PaginationResult<QuoteDTO>(quotes.Count(), 0, 10, quotes.ToDto());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public async Task<PaginationResult<QuoteDTO>> GetSuggestions(int index, int pageSize, int lang)
|
|
|
|
public async Task<PaginationResult<QuoteDTO>> GetSuggestions(int index, int pageSize, int lang)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
var quotes = quoteService.GetSuggestions(index, pageSize, lang).Result.items;
|
|
|
|
|
|
|
|
return new PaginationResult<QuoteDTO>(quotes.Count(), 0, 10, quotes.ToDto());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public async Task<PaginationResult<QuoteDTO>> GetValidQuote(int index, int pageSize)
|
|
|
|
public async Task<PaginationResult<QuoteDTO>> GetValidQuote(int index, int pageSize)
|
|
|
|