public MenuAccessLiteWithChildDTO(MenuAccessRoleDTO menu) { if (menu == null) { return; } this.ControllerName = menu.ControllerName; this.ActionName = menu.ActionName; }
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; }
public static MenuAccessLiteWithChildDTO From(MenuAccessRoleDTO menu) { return(new MenuAccessLiteWithChildDTO(menu)); }
public static MenuAccessRoleDTO From(MenuAccessRoleDTO menu) { return(new MenuAccessRoleDTO(menu)); }