Examining the API domain objects
The API domain objects are a superset of the client model
classes. This is because there is data that the API will need that will not be visible on the client side. Right-click on ForgetMeNot.API.Domain and create the following classes:
InvitationStatus
Invite
Occasion
Related
Roles
User
UserPreference
Let’s walk through them, starting with User
(note that this uses UserPreference
, defined in the following code, so do not build until you have both classes):
public class User { public Guid Id { get; set; } public string FullName { get; set; } public string Email { get; set; } public string HashedPassword { get; set; } public bool IsEmailConfirmed { get; set; } public string Role { get; set; } public List<UserPreference> Preferences...