Пример #1
0
 public async Task NotificationUpdate()
 {
     var    NewChanges    = _changeNotifier.GetChangeNotifier().changed;
     var    notifications = _notificationsRepository.GetLast15Notifications();
     string json          = JsonConvert.SerializeObject(notifications);
     await Clients.Caller.SendAsync("AddAllNotifications", json, NewChanges);
 }
 public ActionResult notification()
 {
     return(PartialView("_Notifications", _notificationsRepository.GetLast15Notifications()));
 }