Exemplo n.º 1
0
        public Task <TalkSummary[]> GetTalkSummaries(int page)
        {
            var actualPage = Math.Max(0, page - 1);

            return(Task.FromResult(Talks.Skip(actualPage * Constants.PageSize).Take(Constants.PageSize)
                                   .Select(MapTalkToSummary).ToArray()));
        }