Esempio n. 1
0
        public async Task <IActionResult> OnPublish([FromForm] string name)
        {
            var response = await _streamService.PublishStream(name);

            if (response.Success)
            {
                return(Redirect(response.StreamName));
            }
            else
            {
                return(BadRequest());
            }
        }