public async Task <IActionResult> AssignRoleToApplication(ApplicationsForRoleViewModel model) { await applicationService.AssignApplicationToRole(model.ApplicationId, model.RoleId); TempData.Put("model", new { Message = "The requested role assignment has been updated." }); return(RedirectToAction(nameof(AdminController.AdminActionComplete), typeof(AdminController))); }