Ejemplo n.º 1
0
 public BOResult Post([FromBody] BORequest boReq, string name)
 {
     try {
         checkBoReqParameter(boReq);
         return(SAPB1.BORequest(q: boReq, name: name, id: null, post: true, result: new BOResult(Request)));
     } catch (Exception e) {
         return(handleException(e));
     }
 }
Ejemplo n.º 2
0
 public BOResult Put([FromBody] BORequest boReq, string name, string id, string profile = null)
 {
     try {
         checkBoReqParameter(boReq);
         applyProfileFromURI(boReq, profile);
         return(SAPB1.BORequest(q: boReq, name: name, id: id, put: true, result: new BOResult(Request)));
     } catch (Exception e) {
         return(handleException(e));
     }
 }
Ejemplo n.º 3
0
 public BOResult Get(/*[FromBody]BORequest boReq,*/ string name, string id, string profile = null, bool rawXml = false, bool xmlSchema = false)
 {
     try {
         BORequest boReq = new BORequest {
             connection = new ConnectionParams {
                 Profile = profile
             }
         };
         applyProfileFromURI(boReq, profile, rawXml, xmlSchema);
         checkBoReqParameter(boReq);
         return(SAPB1.BORequest(q: boReq, name: name, id: id, result: new BOResult(Request)));
     } catch (Exception e) {
         return(handleException(e));
     }
 }
Ejemplo n.º 4
0
 public BOResult Delete(/*BORequest boReq,*/ string name, string id, string profile = null)
 {
     try {
         //checkBoReqParameter(boReq);
         BORequest boReq = new BORequest {
             connection = new ConnectionParams {
                 Profile = profile
             }
         };
         applyProfileFromURI(boReq, profile);
         return(SAPB1.BORequest(q: boReq, name: name, id: id, delete: true, result: new BOResult(Request)));
     } catch (Exception e) {
         return(handleException(e));
     }
 }