Compare commits

...

2 Commits

Author SHA1 Message Date
Najlae LAMBARAA 4ec9cde5f9 :chat: fix erreur
continuous-integration/drone/push Build is passing Details
2 years ago
Najlae LAMBARAA de7cec4d08 🌱 Add BarDto
continuous-integration/drone/push Build is failing Details
2 years ago

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using cat_cafe.Entities;
namespace cat_cafe.Dto
{
public class BarDto
{
public long Id { get; set; }
public string? Name { get; set; }
public List<Cat> cats { get; set; } = new List<Cat>();
}
}

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using AutoMapper;
using cat_cafe.Dto;
using cat_cafe.Entities;
namespace cat_cafe.Mappers
{
public class BarMapper : Profile
{
public BarMapper(){
CreateMap<Bar,BarMapper>().ReverseMap();
}
}
}
Loading…
Cancel
Save