Ejemplo n.º 1
0
        public async Task <IActionResult> GetSubscription(string topic)
        {
            var subscription = await subscriptionStore.GetAsync(App.Id, UserId !, topic, HttpContext.RequestAborted);

            if (subscription == null)
            {
                return(NotFound());
            }

            return(NoContent());
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> GetSubscription(string topic)
        {
            var subscription = await subscriptionStore.GetAsync(App.Id, UserId !, topic, HttpContext.RequestAborted);

            if (subscription == null)
            {
                return(NotFound());
            }

            var response = SubscriptionDto.FromDomainObject(subscription);

            return(Ok(response));
        }