/*
* Copyright (c) Akveo 2019. All Rights Reserved.
* Licensed under the Personal / Commercial License.
* See LICENSE_PERSONAL / LICENSE_COMMERCIAL in the project root for license information on type of purchased license.
*/

using AutoMapper;
using Common.Entities;

namespace Common.WebApi
{
    public class IdentityUserProfile : Profile
    {
        public IdentityUserProfile()
        {
            CreateMap<ApplicationUser, User>().ReverseMap();
            CreateMap<ApplicationRole, Role>().ReverseMap();
            CreateMap<ApplicationUserRole, UserRole>().ReverseMap();
            CreateMap<ApplicationUserClaim, UserClaim>().ReverseMap();
        }
    }
}