/// <summary>
 /// Convert back to service model
 /// </summary>
 /// <returns></returns>
 public static ServiceResultModel ToServiceModel(
     this ServiceResultApiModel model)
 {
     if (model == null)
     {
         return(null);
     }
     return(new ServiceResultModel {
         Diagnostics = model.Diagnostics,
         StatusCode = model.StatusCode,
         ErrorMessage = model.ErrorMessage
     });
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the PublishStartResponseApiModel
 /// class.
 /// </summary>
 public PublishStartResponseApiModel(ServiceResultApiModel errorInfo = default(ServiceResultApiModel))
 {
     ErrorInfo = errorInfo;
     CustomInit();
 }