JobIntegrationDto IJobDataProvider.GetJobDetails(long id) { db = new PersonnelSoft2005Entities(); JobIntegrationDto Result = new JobIntegrationDto(); try { var Temp = (from c in db.PMS_JobTitle where c.ID == id select new JobIntegrationDto() { Id = c.ID, Title = c.Title, Decscription = c.Description, TransferId = c.TransferId.Value }).FirstOrDefault(); Result = Temp; } catch (Exception e) { throw e; } return(Result); }
private JobDTO createDestinationJob(JobIntegrationDto sourceJob) { var res = new JobDTO { Name = sourceJob.Title, CustomFields = new List <CustomFieldDTO>(), DictionaryName = sourceJob.Id.ToString(), TransferId = sourceJob.TransferId }; return(res); }