예제 #1
0
        public async Task <ActionResult <ChannelBase> > Create([FromBody] ChannelBase request)
        {
            request.ChannelId = 0;
            var response = await _channelService.AddChannelAsync(request);

            return(CreatedAtRoute(nameof(GetById), new { id = response.ChannelId }, response));
        }