Example #1
0
        public async Task <IActionResult> MostRequestedLinksPastMonth()
        {
            var response = await _linkForwarderService.GetMostRequestedLinkCount(30);

            if (!response.IsSuccess)
            {
                Response.StatusCode = StatusCodes.Status500InternalServerError;
            }

            return(Json(response));
        }
Example #2
0
        public async Task <IActionResult> MostRequestedLinksPastMonth()
        {
            var linkCounts = await _linkForwarderService.GetMostRequestedLinkCount(30);

            return(Ok(linkCounts));
        }