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