using MyOffice.Services.Account.Domain; namespace MyOffice.Services.Account; using AutoMapper; using Data.Models.Accounts; using Data.Models.Users; public class AccountServiceProfile : Profile { public AccountServiceProfile() { CreateMap(); CreateMap() .ForMember(x => x.HasMotions, o => o.MapFrom(x => x.Motions.Any())) ; CreateMap(); CreateMap(); CreateMap(); CreateMap() .ForMember(x => x.Id, o => o.MapFrom(x => x.Id)) .ForMember(x => x.Id, o => o.MapFrom(x => x.Id)) ; } }