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

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

            return(Ok(response.Data));
        }