public DepartmentSiteModel GetByJobsiteId(int id)
        {
            var result  = new DepartmentSiteModel();
            var jobsite = _tmsJobSiteRepository.Get(id);

            result.SiteId = jobsite.SiteId;
            var site = _siteRepo.Get(result.SiteId);

            result.DepartmentId = site.DepartmentId;
            return(result);
        }
        public JobSiteUpdateModel GetById(int id)
        {
            var model = _iTMSJobSiteRepository.Get(id);

            return(_mapper.Map <TMSJobSite, JobSiteUpdateModel>(model));
        }