diff --git a/cat_cafe/Dto/BarDto.cs b/cat_cafe/Dto/BarDto.cs new file mode 100644 index 0000000..5474f7a --- /dev/null +++ b/cat_cafe/Dto/BarDto.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace cat_cafe.Dto +{ + public class BarDto + { + public long Id { get; set; } + public string? Name { get; set; } + public List cats { get; set; } = new List(); + } +} diff --git a/cat_cafe/Mappers/BarMapper.cs b/cat_cafe/Mappers/BarMapper.cs new file mode 100644 index 0000000..2e71a16 --- /dev/null +++ b/cat_cafe/Mappers/BarMapper.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using cat_cafe.Dto; +using cat_cafe.Entities; +namespace cat_cafe.Mappers +{ + public class BarMapper : Profile + { + public BarMapper(){ + + CreateMap().ReverseMap(); + } + + } +}