示例#1
0
        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;
        }
示例#2
0
        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;
        }