public JobDataModel GetJob(int id) { JobDataModel model = new JobDataModel(); if (id > 0) { JobDTO oJobDTO = oJobsBL.Get(id); if (oJobDTO != null) { model = GetJob(oJobDTO); } } return model; }
public JobDataModel UpdateJob(JobDataModel oJobDataModel) { if (oJobDataModel != null) { JobDTO oJobDTO = new JobDTO(); oJobDTO = JobDataModelAssembler.ToJobDTO(oJobDataModel); if (oJobDTO != null) { oJobDTO = oJobsBL.Update(oJobDTO); } } return oJobDataModel; }