Example #1
0
 public MonadActionResult <Channel, Error> Post([FromBody] Channel channel, [FromQuery] int serverId) =>
 HttpContext.GetUserId()
 .Bind(userId => _channelsService.Insert(userId, serverId, channel));