예제 #1
0
        public static LinkRepresentation CreateTableRowValueLink(IObjectFacade no,
                                                                 ActionContextFacade actionContext,
                                                                 IOidStrategy oidStrategy,
                                                                 HttpRequestMessage req,
                                                                 RestControlFlags flags)
        {
            var           columns = actionContext?.Action?.TableViewData?.Item2;
            var           helper  = new UriMtHelper(oidStrategy, req, no);
            ObjectRelType rt      = no.Specification.IsService ? new ServiceRelType(helper) : new ObjectRelType(RelValues.Element, helper);

            return(CreateTableRowValueLink(no, columns, rt, oidStrategy, req, flags));
        }
        private static RefValueRepresentation CreateObjectRef(IOidStrategy oidStrategy, HttpRequestMessage req, IObjectFacade no, RestControlFlags flags) {
            var helper = new UriMtHelper(oidStrategy, req, no);
            ObjectRelType rt = new ObjectRelType(RelValues.Element, helper);

            return RefValueRepresentation.Create(oidStrategy, rt, flags);
        }