Esempio n. 1
0
        public async Task <IActionResult> CreateBridge(BridgeProfile profile)
        {
            try
            {
                await _context.CreateBridgeProfile(profile, await _userManager.GetUserAsync(HttpContext.User));

                return(RedirectToAction("Index", "Listener"));
            }
            catch (Exception e) when(e is ControllerNotFoundException || e is ControllerBadRequestException || e is ControllerUnauthorizedException)
            {
                return(RedirectToAction("Index", "Listener"));
            }
        }