public async Task <IActionResult> AddAsync([FromBody] EnrolleeAddModel enrolleeAddOrUpdateModel) { if (!ModelState.IsValid) { return(BadRequest()); } var enrolleeCreateDto = _mapper.Map <EnrolleCreateDto>(enrolleeAddOrUpdateModel); var statusCode = await _enrolleeService.AddAsync(enrolleeCreateDto); var response = _enrolleeResponseComposer.ComposeForCreate(statusCode, enrolleeCreateDto); return(response); }