Ejemplo n.º 1
0
 public IActionResult UnsubscribeMeLink([FromServices] SubscriptionsPersistence subscriptions, [FromQuery] string userId, [FromQuery] string topic, [FromQuery] string outletGroup)
 {
     subscriptions.Remove(userId, topic, outletGroup);
     return(Ok());
 }
Ejemplo n.º 2
0
 public IActionResult UnsubscribeFromNotification([FromServices] SubscriptionsPersistence subscriptions, [FromBody] SubscriptionRequest req)
 {
     subscriptions.Remove(req);
     return(Ok($"Successfully Unsubscribed from Notification Topic {req.Topic}"));
 }