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