|
|
@ -16,14 +16,17 @@ namespace NzbDrone.Api
|
|
|
|
//Mapper.CreateMap<QualityTypes, Int32>()
|
|
|
|
//Mapper.CreateMap<QualityTypes, Int32>()
|
|
|
|
// .ForMember(dest => dest, opt => opt.ResolveUsing<QualityTypesToIntResolver>());
|
|
|
|
// .ForMember(dest => dest, opt => opt.ResolveUsing<QualityTypesToIntResolver>());
|
|
|
|
|
|
|
|
|
|
|
|
Mapper.CreateMap<Int32, QualityTypes>()
|
|
|
|
//Mapper.CreateMap<Int32, QualityTypes>()
|
|
|
|
.ForMember(dest => dest.Id, opt => opt.MapFrom(src => src));
|
|
|
|
// .ForMember(dest => dest.Id, opt => opt.MapFrom(src => src));
|
|
|
|
|
|
|
|
|
|
|
|
Mapper.CreateMap<QualityProfile, QualityProfileModel>()
|
|
|
|
//Mapper.CreateMap<QualityProfile, QualityProfileModel>()
|
|
|
|
.ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.QualityProfileId));
|
|
|
|
// .ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.QualityProfileId));
|
|
|
|
|
|
|
|
|
|
|
|
Mapper.CreateMap<QualityProfileModel, QualityProfile>()
|
|
|
|
//Mapper.CreateMap<QualityProfileModel, QualityProfile>()
|
|
|
|
.ForMember(dest => dest.QualityProfileId, opt => opt.MapFrom(src => src.Id));
|
|
|
|
// .ForMember(dest => dest.QualityProfileId, opt => opt.MapFrom(src => src.Id));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Mapper.CreateMap<QualityTypes, QualityProfileType>()
|
|
|
|
|
|
|
|
.ForMember(dest => dest.Allowed, opt => opt.Ignore());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|