private EMKServise.Guardian ConvertGuardian(Guardian c) { if ((object)c != null) { EMKServise.Guardian ed = new EMKServise.Guardian(); ed.IdRelationType = c.IdRelationType; ed.Person = ConvertPersonWithIdentity(c.Person); if (c.UnderlyingDocument != "") { ed.UnderlyingDocument = c.UnderlyingDocument; } return(ed); } else { return(null); } }
private EMKServise.Guardian ConvertGuardian(Guardian c) { if ((object)c != null) { EMKServise.Guardian ed = new EMKServise.Guardian(); ed.IdRelationType = c.IdRelationType; ed.Person = ConvertPersonWithIdentity(c.Person); if (c.UnderlyingDocument != "") ed.UnderlyingDocument = c.UnderlyingDocument; return ed; } else return null; }