public static UserDocument CreateFromContract(UserContract contract)
{
return new UserDocument
{
Id = contract.UserId,
ProfilePhotoUrl = contract.ProfilePhotoUrl,
ProfilePhotoId = contract.ProfilePhotoId,
GoldBalance = contract.GoldBalance,
RegistrationReference = contract.RegistrationReference,
CreatedAt = new DateDocument
{
Date = contract.UserCreated
},
ModifiedAt = new DateDocument
{
Date = contract.UserModified
}
};
}