/// <summary> /// To service model /// </summary> /// <returns></returns> public CertificateRequestRecordModel ToServiceModel() { return(new CertificateRequestRecordModel { RequestId = RequestId, EntityId = EntityId, Type = Type, State = State, GroupId = GroupId, Submitted = Submitted?.ToServiceModel(), Accepted = Accepted?.ToServiceModel(), Approved = Approved?.ToServiceModel(), ErrorInfo = ErrorInfo }); }