Пример #1
0
        public async Task <IActionResult> GetConfirmed(
            [HttpTrigger(AuthorizationLevel.Anonymous, HttpVerbs.GET, Route = "CommunityConfirmed")] HttpRequest req)
        {
            int take = 10, skip = 0;

            _ = int.TryParse(req.Query["take"].ToString(), out take);
            _ = int.TryParse(req.Query["skip"].ToString(), out skip);

            var result = await communityService.GetConfirmedAsync(take, skip);

            return(new OkObjectResult(result));
        }