コード例 #1
0
        private Clause GetClauseLocal(int id)
        {
            Data.ScriptClause scriptclause = GetScriptClaus(id);


            if (scriptclause == null)
            {
                return(null);
            }

            Clause theClause = Clause.CreateClauseFromXML(scriptclause.ClauseXML);


            return(theClause);
        }
コード例 #2
0
        public IHttpActionResult GetClause(int id)
        {
            Data.ScriptClause scriptclause = GetScriptClaus(id);


            if (scriptclause == null)
            {
                return(NotFound());
            }

            Clause theClause = Clause.CreateClauseFromXML(scriptclause.ClauseXML);


            return(Ok(theClause));
        }