public MonadActionResult <Message, Error> PutMessage(int channelId, [FromBody] Message message) => HttpContext.GetUserId() .Bind(userId => _channelsService.UpdateMessage(userId, channelId, message));
public MonadActionResult <Message, Error> PutMessage(int channelId, [FromBody] Message message) => HttpContext.GetUserId() .Bind(userId => _channelsService.UpdateMessage(userId, channelId, message));