public async System.Threading.Tasks.Task <ActionResult> Copy(string Id) { try { var role = await GraphHelper.CopyRoleDefinition(Id); return(RedirectToAction("Roles")); } catch (Exception e) { Flash("Error getting DeviceManagementScripts" + e.Message.ToString()); return(RedirectToAction("Roles")); } }