Esempio n. 1
0
 /// <summary>
 /// Create a new generic OICP result.
 /// </summary>
 /// <param name="Request">The request.</param>
 /// <param name="Response">The result.</param>
 /// <param name="WasSuccessful">The request was successful.</param>
 /// <param name="ValidationErrors">Possible request data validation errors.</param>
 /// <param name="ProcessId">The process identification of the result.</param>
 private OICPResult(Object Request,
                    T Response,
                    Boolean WasSuccessful,
                    ValidationErrorList ValidationErrors,
                    Process_Id?ProcessId)
 {
     this.Request          = Request;
     this.Response         = Response;
     this.WasSuccessful    = WasSuccessful;
     this.ValidationErrors = ValidationErrors;
     this.ProcessId        = ProcessId;
 }
Esempio n. 2
0
        /// <summary>
        /// The request had some data validation errors.
        /// </summary>
        /// <param name="Request">The request.</param>
        /// <param name="ValidationErrors">Possible request data validation errors.</param>
        /// <param name="ProcessId">The process identification of the result.</param>
        public static OICPResult <T> BadRequest(Object Request,
                                                ValidationErrorList ValidationErrors = null,
                                                Process_Id?ProcessId = null)

        => new OICPResult <T>(Request,