public IActionResult AddAStagesToAJob(int id, int stageId)
        {
            if (!_jobRepository.JobExists(id))
            {
                return(NotFound());
            }


            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (!_jobRepository.AddJobStages(id, stageId))
            {
                ModelState.AddModelError("", $"Something went wrong saving the job " +
                                         $"{id}");
                return(StatusCode(500, ModelState));
            }

            return(Ok(new { jobStageCreated = true }));
        }