public async Task <IActionResult> MostRequestedLinksPastMonth() { var response = await _linkForwarderService.GetMostRequestedLinkCount(30); if (!response.IsSuccess) { Response.StatusCode = StatusCodes.Status500InternalServerError; } return(Json(response)); }
public async Task <IActionResult> MostRequestedLinksPastMonth() { var linkCounts = await _linkForwarderService.GetMostRequestedLinkCount(30); return(Ok(linkCounts)); }