예제 #1
0
        public async Task <IActionResult> Create([FromBody] NewMember newMember)
        {
            var member   = _mapper.Map <NewMember, Core.CoreModels.Member>(newMember);
            var memberId = await _membersService.Create(member);

            return(Ok(new CreatedMember {
                MemberId = memberId
            }));
        }
예제 #2
0
        public async Task <IActionResult> Create(MemberDto memberDto)
        {
            await service.Create(memberDto);

            return(Ok());
        }