public ActionResult PostAlreadyAdded(string choice = null) { AlreadyAddedAccountProviderViewModel = new AlreadyAddedAccountProviderViewModel { AccountProviderId = 2, Choice = choice }; return(AccountProvidersController.AlreadyAdded(AlreadyAddedAccountProviderViewModel)); }
public ActionResult AlreadyAdded(AlreadyAddedAccountProviderViewModel model) { switch (model.Choice) { case "SetPermissions": return(RedirectToAction("Get")); case "AddTrainingProvider": return(RedirectToAction("Find")); default: throw new ArgumentOutOfRangeException(nameof(model.Choice), model.Choice); } }