lmplement all actions

This commit is contained in:
2023-10-17 00:33:44 +02:00
parent fc98f99eda
commit 7ee50442c5
10 changed files with 143 additions and 1 deletions

7
Dtos/CreateBreederDto.cs Normal file
View File

@@ -0,0 +1,7 @@
namespace GerbilManager.Dtos
{
public record CreateBreederDto
{
public string Name { get; init; }
}
}

11
Dtos/CreateGerbilDto.cs Normal file
View File

@@ -0,0 +1,11 @@
namespace GerbilManager.Dtos
{
public record CreateGerbilDto
{
public string Name { get; init; }
public GenderDto Gender { get; init; }
public Guid Litter { get; init; }
public Guid Breeder { get; init; }
}
}

11
Dtos/CreateLitterDto.cs Normal file
View File

@@ -0,0 +1,11 @@
namespace GerbilManager.Dtos
{
public record CreateLitterDto
{
public string Name { get; init; }
public DateTime Date { get; init; }
public int Strength { get; init; }
public Guid Father { get; init; }
public Guid Mother { get; init; }
}
}

10
Dtos/UpdateGerbilDto.cs Normal file
View File

@@ -0,0 +1,10 @@
namespace GerbilManager.Dtos
{
public record UpdateGerbilDto
{
public string Name { get; init; }
public GenderDto Gender { get; init; }
public LitterDto Litter { get; init; }
public BreederDto Breeder { get; init; }
}
}