15 lines
289 B
C#
15 lines
289 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace HealthApp.Contracts;
|
|
|
|
public sealed record CreatePatientRequest
|
|
{
|
|
[Required]
|
|
public string? Name { get; init; }
|
|
|
|
[Required]
|
|
public DateOnly? DateOfBirth { get; init; }
|
|
|
|
public string? ContactInfo { get; init; }
|
|
}
|