public async Task <List <Product_Model> > GetPagingAsync(Product_GetPaging_Schema model) { var result = await _getPaging.ExecuteAsync(model); model.TotalCount = result.Any() ? result.Single().TotalCount : 0; return(result.ToList()); }
public async Task <IEnumerable <EventModel> > GetPagingAsync(EventGetPagingSchema model) { var result = await _matchGetPaging.ExecuteAsync(model); model.RowsCount = result != null && result.Any() ? result.FirstOrDefault().RowsCount.Value : 0; return(result); }
public async Task <IEnumerable <LeaderboardModel> > GetLeaderboardPagingAsync(GetLeaderboardSchema model) { var result = await _getLeaderboard.ExecuteAsync(model); model.RowsCount = result != null && result.Any() ? result.FirstOrDefault().RowsCount.Value : 0; return(result); }
public async Task <List <Product_Model> > GetByLocationAsync(Product_GetByLocation_Schema model) { var result = await _getByLocation.ExecuteAsync(model); return(result.ToList()); }
public async Task <List <SendMessageQueue_Model> > GetPagingAsync(SendMessageQueue_GetPaging_Schema model) { var result = await _sendMessageQueueGet.ExecuteAsync(model); return(result.ToList()); }
public async Task <IEnumerable <MostPredictedModel> > GetMostPredictedAsync(MostPredictedSchema model) { return(await _mostPredicted.ExecuteAsync(model)); }