public IActionResult UpdateChannel([FromBody] Channel channel) { Channel channel1 = _channelLogic.GetChannelById(channel.ChannelId); if (channel1 != null) { return(NoContent()); } channel1.ChannelName = channel.ChannelName; channel1.IsActive = channel.IsActive; channel1.GroupId = channel.GroupId; _channelLogic.UpdateChannel(channel); return(Ok("Update Successfully")); }