コード例 #1
0
        public static Member ToMember(this MemberServiceModel serviceModel)
        {
            var member = new Member();

            member.InjectFrom(serviceModel);
            return(member);
        }
コード例 #2
0
        public async Task <MemberServiceModel> SaveMemberAsync(MemberServiceModel memberServiceModel)
        {
            Member member = await memberRepository
                            .SaveAsync(memberServiceModel.Id, memberServiceModel.ToMember());

            return(new MemberServiceModel(member));
        }