Ejemplo n.º 1
0
 public static createType CreateCreate(HttpStatusCode statusCode, string id, string advisoryId = null, errorType error = null)
 {
     createType create = new createType();
     create.statusCode = ((int)statusCode).ToString();
     create.id = id;
     if (StringUtils.NotEmpty(advisoryId))
     {
         create.advisoryId = advisoryId;
     }
     if (error != null)
     {
         create.error = error;
     }
     return create;
 }
Ejemplo n.º 2
0
 public static createResponseType CreateCreateResponse(createType create)
 {
     createResponseType createResponse = new createResponseType();
     createResponse.creates = new createType[] { create } ;
     return createResponse;
 }