public IActionResult GetMiniNotifications(int page = 1, int pageSize = 5) { int langId = 1; LoginModel model = base.TutorModel != null ? base.TutorModel : base.StudentModel; if (model != null) { QAResponse <ICollection <Notif> > notifs = ScheduleDB.GetNotificationsPage ( model.User.UserId, Notification.NotificationType.Push, 0 - (short)DateTimeOffset.Now.Offset.TotalMinutes, //DateTime.Now.AddHours(-100), //DateTime.Now.AddHours(100), null, null, langId, page, pageSize, GetConfiguration().GetConnectionString(DEFAULT_CONNECTION), false ); notifs.Extras.Remove("RemainingPages"); notifs.Extras.Add("RemainingPages", "-1"); return(Json(notifs)); } return(null); }