20 lines
617 B
C#
20 lines
617 B
C#
|
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>();
|
|||
|
CreateMap<WeeklyTimeSpanDTO, WeeklyTimeSpan>().ForMember(x => x.Id, options => options.Ignore()).ForMember(x => x.Owner, options => options.Ignore()).ForMember(x => x.OwnerId, options => options.Ignore());
|
|||
|
}
|
|||
|
}
|
|||
|
}
|