Exemplo n.º 1
0
        public async Task <IActionResult> EditBridge(BridgeProfile profile)
        {
            try
            {
                await _context.EditBridgeProfile(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"));
            }
        }