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; }
public static createResponseType CreateCreateResponse(createType create) { createResponseType createResponse = new createResponseType(); createResponse.creates = new createType[] { create } ; return createResponse; }