public void Updete(ChannelsInfo itemInfo) { var result = _channelService.Update(itemInfo); if (result.IsSuccess) { return; } throw new Exception(result.Message); }
public MonadActionResult <Channel, Error> Put([FromBody] Channel channel) => HttpContext.GetUserId() .Bind(userId => _channelsService.Update(userId, channel));