Exemple #1
0
        public MenuAccessLiteWithChildDTO(MenuAccessRoleDTO menu)
        {
            if (menu == null)
            {
                return;
            }

            this.ControllerName = menu.ControllerName;
            this.ActionName     = menu.ActionName;
        }
Exemple #2
0
        public MenuAccessRoleDTO(MenuAccessRoleDTO menu)
        {
            if (menu == null)
            {
                return;
            }
            //if (menu.IsSuperAdminOnly == true) return;

            this.Id               = menu.Id;
            this.Name             = menu.Name;
            this.Description      = menu.Description;
            this.ControllerName   = menu.ControllerName;
            this.ActionName       = menu.ActionName;
            this.Active           = menu.Active;
            this.HasAccess        = menu.HasAccess;
            this.IsSuperAdminOnly = menu.IsSuperAdminOnly;
        }
Exemple #3
0
 public static MenuAccessLiteWithChildDTO From(MenuAccessRoleDTO menu)
 {
     return(new MenuAccessLiteWithChildDTO(menu));
 }
Exemple #4
0
 public static MenuAccessRoleDTO From(MenuAccessRoleDTO menu)
 {
     return(new MenuAccessRoleDTO(menu));
 }