mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Bootstrap loading profiles via ajax
This commit is contained in:
parent
44c7a58595
commit
0ecbb30345
18 changed files with 92 additions and 122 deletions
|
@ -4,6 +4,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using AutoMapper;
|
||||
using NzbDrone.Api.QualityProfiles;
|
||||
using NzbDrone.Api.Resolvers;
|
||||
using NzbDrone.Core.Repository.Quality;
|
||||
|
||||
namespace NzbDrone.Api
|
||||
|
@ -12,6 +13,12 @@ namespace NzbDrone.Api
|
|||
{
|
||||
public static void Initialize()
|
||||
{
|
||||
//Mapper.CreateMap<QualityTypes, Int32>()
|
||||
// .ForMember(dest => dest, opt => opt.ResolveUsing<QualityTypesToIntResolver>());
|
||||
|
||||
Mapper.CreateMap<Int32, QualityTypes>()
|
||||
.ForMember(dest => dest.Id, opt => opt.MapFrom(src => src));
|
||||
|
||||
Mapper.CreateMap<QualityProfile, QualityProfileModel>()
|
||||
.ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.QualityProfileId));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue