Add contact controller

This commit is contained in:
Julian
2022-05-14 20:19:41 +02:00
parent df8be1672e
commit 9e38cfd25d
10 changed files with 212 additions and 16 deletions

View File

@@ -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,
};
}
}
}