Move webapi to sub folder

This commit is contained in:
Julian
2023-10-21 14:02:51 +02:00
parent 489f0ee35a
commit a986e3546a
32 changed files with 681 additions and 681 deletions

View File

@@ -0,0 +1,19 @@
using GerbilManager.Dtos;
using GerbilManager.Models;
namespace GerbilManager.Converter
{
public static class GerbilConverterExtension
{
public static GerbilDto AsDto(this Gerbil gerbil)
{
return new GerbilDto{
Breeder = gerbil.Breeder.AsDto(),
Gender = (GenderDto) ((int) gerbil.Gender),
Name = gerbil.Name,
Litter = gerbil.Litter.AsDto()
};
}
}
}