/// <summary> /// Construct DTO model without payload object using WebApiServiceException. /// </summary> /// <param name="exception">the exception</param> public DtoModelOutgoing(ManagedException exception, IEnumerable<IPayload> errorDetails) { Payload = errorDetails; Service = new ServiceObject(exception.ErrorCode, exception.ErrorMessage); }
/// <summary> /// Construct DTO model without payload object using WebApiServiceException. /// </summary> /// <param name="exception">the exception</param> public DtoModelOutgoing(ManagedException exception, IPayload errorDetails = null) { Payload = errorDetails; Service = new ServiceObject(exception.ErrorCode, exception.ErrorMessage); }