Example #1
0
        public async Task <IActionResult> DailyTrends([FromQuery] PaginationParams input)
        {
            var token  = GetToken();
            var userId = Guid.Empty;

            if (!String.IsNullOrEmpty(token))
            {
                userId         = Guid.Parse(LoginHelper.GetClaim(token, "UserId"));
                input.EntityId = userId;
            }
            var post = await _postAppService.DailyTrends(input);

            return(Ok(post));
        }