public async Task <ActionResult <JobCategoryDto> > Create(JobCategoryRequest model) { var jobCategory = await _repository.Create(model); return(jobCategory != null ? Created(nameof(Create), jobCategory) : StatusCode(StatusCodes.Status500InternalServerError, null)); }