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