internal static SubMenu GetSubMenu(Guid id, DataTransferObject.Permission.SubMenuView view) { var result = GetSubMenu(view); result.Id = id; return(result); }
internal static SubMenu GetSubMenu(DataTransferObject.Permission.SubMenuView view) { if (view == null) { throw new ArgumentNullException("view"); } view.Validate(); return(new SubMenu(view.Name, view.Address) { SortLevel = view.SortLevel, Remark = view.Remark, Valid = view.Valid, Display = view.Display }); }