<commit_before>﻿using AutoMapper;
using SFA.DAS.EAS.Account.Api.Types;

namespace SFA.DAS.EAS.Api.Mappings
{
    public class AccountMappings : Profile
    {
        public AccountMappings()
        {
            CreateMap<Domain.Data.Entities.Account.Account, AccountDetailViewModel>();
        }
    }
}<commit_msg>Adding mapping fix for account api<commit_after>﻿using AutoMapper;
using SFA.DAS.EAS.Account.Api.Types;

namespace SFA.DAS.EAS.Api.Mappings
{
    public class AccountMappings : Profile
    {
        public AccountMappings()
        {
            CreateMap<Domain.Data.Entities.Account.Account, AccountDetailViewModel>()
                .ForMember(target => target.HashedAccountId, opt => opt.MapFrom(src => src.HashedId))
                .ForMember(target => target.DasAccountName, opt => opt.MapFrom(src => src.Name));
        }
    }
}
{'fraction_non_alphanumeric': 0.11475409836065574, 'fraction_numerical': 0.0, 'mean_word_length': 2.7831858407079646, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6030669', 'n_tokens_mistral': 263, 'n_tokens_neox': 257, 'n_words': 43}