public async Task <ActionResult> GetRoles()
        {
            var roles = _securityManager.GetRoles();

            return(Json(new SelectList(roles, "Id", "Name", 1)));
        }
 public IActionResult MenuToRole(string id)
 {
     ViewData["roles"] = _securityLogic.GetRoles(id);
     return(View(_securityLogic.GetMenuByRoleId(id)));
 }