public IHttpActionResult SingleJobWithOptions(long id)
        {
            try
            {
                JobRepository repo = new JobRepository();
                JobGroupRepository groupRepo = new JobGroupRepository();
                SelectRepository selectRepo = new SelectRepository();

                JobViewModel model = repo.GetSingle(id);

                if (model.id == 0)
                {
                    throw new Exception(Error.CONTENT_NOT_FOUND);
                }

                model.workbases = selectRepo.Workbases();
                model.groups = groupRepo.GetList(string.Empty, string.Empty, null);

                return Ok(model);
            }
            catch (Exception ex)
            {
                return BadRequest(ex.Message);
            }
        }