public async Task <IActionResult> Active(ShortcutIdRequestModel request) { if (!ModelState.IsValid) { return(RedirectToErrorPage()); } var isActived = await _shortcutService.ActiveAsync(new ShortcutModifyRequest { Id = request.Id, UpdatedById = LoggedUserId }); if (!isActived) { return(RedirectToErrorPage()); } if (request.ShouldKeepUpdatePage) { return(RedirectToAction(nameof(Update), new { id = request.Id })); } return(RedirectToAction(nameof(Index))); }