/// <summary> /// Convert error to model error /// </summary> /// <param name="error"></param> /// <returns></returns> public static DeviceJobErrorModel ToModel(this DeviceJobError error) { return(new DeviceJobErrorModel { Code = error.Code, Description = error.Description }); }
public DeviceJobErrorServiceModel(DeviceJobError error) { this.Code = error.Code; this.Description = error.Description; }