public async Task <ActionResult> Post([FromBody] JobApplicationDTO applicationDTO) { try { var application = _mapper.Map <JobApplication>(applicationDTO); var newApplication = await _repository.AddJobApplication(application); return(CreatedAtAction(nameof(GetJobApplication), new { id = newApplication.Id }, _mapper.Map <JobApplicationDTO>(newApplication))); } catch { // TODO: Log exception return(BadRequest()); } }