mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-27 02:07:41 +00:00
22 lines
649 B
C#
22 lines
649 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using AutoMapper;
|
|
using NzbDrone.Api.QualityProfiles;
|
|
using NzbDrone.Core.Repository.Quality;
|
|
|
|
namespace NzbDrone.Api
|
|
{
|
|
public static class Bootstrapper
|
|
{
|
|
public static void Initialize()
|
|
{
|
|
Mapper.CreateMap<QualityProfile, QualityProfileModel>()
|
|
.ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.QualityProfileId));
|
|
|
|
Mapper.CreateMap<QualityProfileModel, QualityProfile>()
|
|
.ForMember(dest => dest.QualityProfileId, opt => opt.MapFrom(src => src.Id));
|
|
}
|
|
}
|
|
}
|