public IActionResult GetUserNotifications([FromQuery] int pageSize, int pageNumber) { NavbarNotificationsReturnModel ret = new NavbarNotificationsReturnModel(); var user = HttpContext.User; Claim idClaim = User.FindFirst("sub"); if (idClaim != null) { ret.Notifications = _notificationDataService.GetNavbarNotifications(pageSize, pageNumber, idClaim.Value); ret.IsMoreNotifications = ret.Notifications.HasNextPage; } return(Ok(Json(ret))); }