public static data::Comment Map(model::Comment comment) { return new data.Comment { Text = comment.Text, CreatedOn = comment.CreatedOn, NoteId = comment.NoteId }; }
public static data::Note Map(model::Note note) { return new data.Note { Id = note.Id, Text = note.Text, Title = note.Title, CreatedOn = note.CreatedOn }; }
public static data::User Map(model::User user) { return new data.User { Id = user.Id, CreatedOn = user.CreatedOn, FullName = user.FullName, IsPremiumUser = user.IsPremiumUser }; }