Пример #1
0
        public async Task <IActionResult> Get(
            [HttpTrigger(AuthorizationLevel.Anonymous, HttpVerbs.GET, Route = "Community")] 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.GetAsync(take, skip);

            return(new OkObjectResult(result));
        }