namespace Yw.Application.Repair
{
///
///
///
public class Mapper : IRegister
{
///
///
///
///
public void Register(TypeAdapterConfig config)
{
#region RepairRequestForm
config.ForType()
.Map(dest => dest.FormStatus, src => eRequestStatus.Pending)
.Map(dest => dest.Location, src => src.Location == null ? null : new List() { src.Location })
.Map(dest => dest.CreateTime, src => DateTime.Now)
.Map(dest => dest.CreateUserName, src => UserManager.UserName)
.Map(dest => dest.CreateUserID, src => UserManager.UserID);
#endregion
}
}
}