All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
- Created Dockerfile for packing up API and Web projects as Docker image
23 lines
662 B
C#
23 lines
662 B
C#
using AutoMapper;
|
|
using YABA.Common.DTOs;
|
|
using YABA.Common.DTOs.Bookmarks;
|
|
using YABA.Common.DTOs.Tags;
|
|
using YABA.Models;
|
|
|
|
namespace YABA.Service.Configuration
|
|
{
|
|
public class AutoMapperProfile : Profile
|
|
{
|
|
public AutoMapperProfile()
|
|
{
|
|
CreateMap<User, UserDTO>();
|
|
CreateMap<BookmarkDTO, Bookmark>();
|
|
CreateMap<Bookmark, BookmarkDTO>();
|
|
CreateMap<CreateBookmarkRequestDTO, Bookmark>();
|
|
CreateMap<Tag, TagDTO>();
|
|
CreateMap<CreateTagDTO, Tag>()
|
|
.ForMember(dest => dest.Name, opt => opt.MapFrom(src => src.Name.ToLowerInvariant()));
|
|
}
|
|
}
|
|
}
|