protected MenuRepresentation(IOidStrategy oidStrategy, HttpRequestMessage req, IMenuFacade menu, RestControlFlags flags) : base(oidStrategy, flags) { var helper = new UriMtHelper(oidStrategy, req, menu); SetScalars(menu); SelfRelType = new MenuRelType(RelValues.Self, helper); SetLinksAndMembers(req, menu); SetExtensions(menu); SetHeader(menu); }
private LinkRepresentation CreateMenuLink(IOidStrategy oidStrategy, HttpRequestMessage req, IMenuFacade menu) { var helper = new UriMtHelper(oidStrategy, req, menu); var rt = new MenuRelType(helper); return LinkRepresentation.Create(oidStrategy, rt, Flags, new OptionalProperty(JsonPropertyNames.Title, menu.Name)); }