hanyadikhetvan-dotnethf/HanyadikHetVan/Profiles/WeeklyTimeSpanProfile.cs

20 lines
615 B
C#
Raw Normal View History

2021-05-19 04:33:53 +02:00
using AutoMapper;
using HanyadikHetVan.Data.Entities;
using HanyadikHetVan.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace HanyadikHetVan.Profiles
{
public class WeeklyTimeSpanProfile : Profile
{
public WeeklyTimeSpanProfile()
{
CreateMap<WeeklyTimeSpan, WeeklyTimeSpanDTO>();
2021-05-19 17:56:56 +02:00
CreateMap<WeeklyTimeSpanDTO, WeeklyTimeSpan>().ForMember(x => x.Id, options => options.Ignore()).ForMember(x => x.User, options => options.Ignore()).ForMember(x => x.UserId, options => options.Ignore());
2021-05-19 04:33:53 +02:00
}
}
}