public static SM.IPersonProfile ToService(StorablePersonProfile source) { if (source == null) { return(null); } var target = new SM.PersonProfile() { Id = source.Id.ToString(), ETag = source.ETag, GivenName = source.GivenName, Surname = source.Surname }; return(target); }
public static StorablePersonProfile ToStorage(SM.IPersonProfile source) { if (source == null) { return(null); } var target = new StorablePersonProfile { Id = ToGuid(source.Id), ETag = source.ETag, GivenName = source.GivenName, Surname = source.Surname }; return(target); }
private static IStorablePersonProfile ToDal(IPersonProfile source) { if (source == null) { return(null); } var target = new StorablePersonProfile { Id = ToGuid(source.Id), ETag = source.ETag, GivenName = source.GivenName, Surname = source.Surname }; return(target); }