🌱 Add BarDto
continuous-integration/drone/push Build is failing Details

Bar_DTO
Najlae LAMBARAA 2 years ago
parent 4eff48d394
commit de7cec4d08

@ -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<Cat> cats { get; set; } = new List<Cat>();
}
}

@ -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<Bar,BarMapper>().ReverseMap();
}
}
}
Loading…
Cancel
Save