Move webapi to sub folder
This commit is contained in:
18
GerbilManagerWebAPI/Converter/BreederConveter.cs
Normal file
18
GerbilManagerWebAPI/Converter/BreederConveter.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using GerbilManager.Dtos;
|
||||
using GerbilManager.Models;
|
||||
|
||||
namespace GerbilManager.Converter
|
||||
{
|
||||
public static class BreederConverterExtension
|
||||
{
|
||||
public static BreederDto AsDto(this Breeder breeder)
|
||||
{
|
||||
return new BreederDto{
|
||||
Id = breeder.Id,
|
||||
Name = breeder.Name
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user