Esempio n. 1
0
        public void AddMemberSport(MemberDto memberDto)
        {
            var config = new MapperConfiguration(cfg =>
                                                 cfg.CreateMap <MemberDto, Member>());
            var mapper = new Mapper(config);

            var member = mapper.Map <Member>(memberDto);

            _memberService.AddMemberSport(member, memberDto.SportId);
        }