public async Task Post(NotificationHubModel model) { await _hubContext.Clients.All.SendAsync("notificationReceived", "rest", model.Message); }
public async Task Notification(NotificationHubModel model) { await Clients.All.SendAsync("notificationReceived", "server", model.Message); }