public IActionResult PostAsync(IFormFile file, [FromForm] string endpointKey = null, [FromForm] string microsoftAppPassword = null) { if (file == null) { return(BadRequest()); } BotManager.SetCurrent(file.OpenReadStream(), endpointKey, microsoftAppPassword); return(Ok()); }