示例#1
0
        public void Updete(ChannelsInfo itemInfo)
        {
            var result = _channelService.Update(itemInfo);

            if (result.IsSuccess)
            {
                return;
            }
            throw new Exception(result.Message);
        }
示例#2
0
 public MonadActionResult <Channel, Error> Put([FromBody] Channel channel) =>
 HttpContext.GetUserId()
 .Bind(userId => _channelsService.Update(userId, channel));