コード例 #1
0
        public IHttpActionResult GetProblemList(int start, int limit)
        {
            var problems = problem_repository.GetProblems(start, limit);


            return(Ok(new CollectionResponse()
            {
                TotalCount = problem_repository.GetProblemCount(),
                Collection = ProblemListItem.MapTo(problems)
            }));
        }