Reviewing DTOs
The ForgetMeNot.Api.Dto
project will, as you might have guessed, hold DTOs. These will correspond to the model objects but are designed to be passed back and forth between the server and the client.
Project reference
You will need to add a project reference from ForgetMeNot.Api.Dto
to ForgetMeNot.Api.Domain
.
Let’s start with BuddyDto.cs
:
using ForgetMeNot.Api.Domain; namespace ForgetMeNot.Api.Dto { public class BuddyDto { public BuddyDto() { } public BuddyDto(User user) { UserId = user.Id; FullName = user.FullName; ...