Beispiel #1
0
        public async Task <ActionResult <SubscriptionResponse> > Subscribe([FromQuery(Name = "ChanelAuthorId")] string subId)
        {
            var response = await _service.CreateSubscriptionResponse(subId, User);

            if (!response.Success)
            {
                return(Conflict(response.Message));
            }

            return(Ok(response.Data));
        }