Add contact controller
This commit is contained in:
@@ -28,6 +28,19 @@ namespace weddingapi.Converters
|
||||
Name = person.Name,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
public static ContactDto AsDto(this Contact contact)
|
||||
{
|
||||
return new ContactDto()
|
||||
{
|
||||
CreatedDate = contact.CreatedDate,
|
||||
Email = contact.Email,
|
||||
From = contact.From,
|
||||
Id = contact.Id,
|
||||
Message = contact.Message,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user