Move webapi to sub folder
This commit is contained in:
8
GerbilManagerWebAPI/Dtos/BreederDto.cs
Normal file
8
GerbilManagerWebAPI/Dtos/BreederDto.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace GerbilManager.Dtos
|
||||
{
|
||||
public record BreederDto
|
||||
{
|
||||
public Guid Id { get; init; }
|
||||
public string Name { get; init; }
|
||||
}
|
||||
}
|
||||
7
GerbilManagerWebAPI/Dtos/CreateBreederDto.cs
Normal file
7
GerbilManagerWebAPI/Dtos/CreateBreederDto.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace GerbilManager.Dtos
|
||||
{
|
||||
public record CreateBreederDto
|
||||
{
|
||||
public string Name { get; init; }
|
||||
}
|
||||
}
|
||||
11
GerbilManagerWebAPI/Dtos/CreateGerbilDto.cs
Normal file
11
GerbilManagerWebAPI/Dtos/CreateGerbilDto.cs
Normal 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
GerbilManagerWebAPI/Dtos/CreateLitterDto.cs
Normal file
11
GerbilManagerWebAPI/Dtos/CreateLitterDto.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
9
GerbilManagerWebAPI/Dtos/GenderDto.cs
Normal file
9
GerbilManagerWebAPI/Dtos/GenderDto.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace GerbilManager.Dtos
|
||||
{
|
||||
public enum GenderDto
|
||||
{
|
||||
unknown = 0,
|
||||
male = 1,
|
||||
female = 2
|
||||
}
|
||||
}
|
||||
11
GerbilManagerWebAPI/Dtos/GerbilDto.cs
Normal file
11
GerbilManagerWebAPI/Dtos/GerbilDto.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace GerbilManager.Dtos
|
||||
{
|
||||
public record GerbilDto
|
||||
{
|
||||
public Guid Id { get; init; }
|
||||
public string Name { get; init; }
|
||||
public GenderDto Gender { get; init; }
|
||||
public LitterDto Litter { get; init; }
|
||||
public BreederDto Breeder { get; init; }
|
||||
}
|
||||
}
|
||||
12
GerbilManagerWebAPI/Dtos/LitterDto.cs
Normal file
12
GerbilManagerWebAPI/Dtos/LitterDto.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace GerbilManager.Dtos
|
||||
{
|
||||
public record LitterDto
|
||||
{
|
||||
public Guid Id { get; init; }
|
||||
public string Name { get; init; }
|
||||
public DateTime Date { get; init; }
|
||||
public int Strength { get; init; }
|
||||
public GerbilDto Father { get; init; }
|
||||
public GerbilDto Mother { get; init; }
|
||||
}
|
||||
}
|
||||
8
GerbilManagerWebAPI/Dtos/UpdateBreederDto.cs
Normal file
8
GerbilManagerWebAPI/Dtos/UpdateBreederDto.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
namespace GerbilManager.Dtos
|
||||
{
|
||||
public record UpdateBreederDto
|
||||
{
|
||||
public string Name { get; init; }
|
||||
}
|
||||
}
|
||||
10
GerbilManagerWebAPI/Dtos/UpdateGerbilDto.cs
Normal file
10
GerbilManagerWebAPI/Dtos/UpdateGerbilDto.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
12
GerbilManagerWebAPI/Dtos/UpdateLitterDto.cs
Normal file
12
GerbilManagerWebAPI/Dtos/UpdateLitterDto.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
namespace GerbilManager.Dtos
|
||||
{
|
||||
public record UpdateLitterDto
|
||||
{
|
||||
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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user