public async Task <ActionResult> Cancel(string invitationId, string email, string hashedAccountId, int cancel) { if (cancel != 1) { return(RedirectToAction("ViewTeam", new { HashedAccountId = hashedAccountId })); } var response = await _employerTeamOrchestrator.Cancel(email, hashedAccountId, OwinWrapper.GetClaimValue(@"sub")); return(View("ViewTeam", response)); }
public async Task <ActionResult> Cancel(string invitationId, string email, string hashedAccountId, int cancel) { if (cancel != 1) { return(RedirectToAction(ControllerConstants.ViewTeamViewName, new { HashedAccountId = hashedAccountId })); } var response = await _employerTeamOrchestrator.Cancel(email, hashedAccountId, OwinWrapper.GetClaimValue(ControllerConstants.UserRefClaimKeyName)); return(View(ControllerConstants.ViewTeamViewName, response)); }