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 })); }
public async Task <IActionResult> Create(MemberDto memberDto) { await service.Create(memberDto); return(Ok()); }