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