Exemple #1
0
        public JobDTO Create(JobDTO oJob)
        {
            if (oJob != null)
            {
                return(JobAssembler.ToDTO(oJobRepos.CreateJob(JobAssembler.ToEntity(oJob))));
            }

            return(null);
        }
Exemple #2
0
        public JobDTO Create(JobDTO modelDTO)
        {
            if (modelDTO != null)
            {
                return(JobAssembler.ToDTO(jobRepos.CreateJob(JobAssembler.ToEntity(modelDTO))));
            }

            return(null);
        }
Exemple #3
0
        public JobDTO Update(JobDTO oJobDTO)
        {
            JobDTO returnUserMap = null;

            if (oJobDTO != null && oJobDTO.JobID > 0)
            {
                oJobRepos.UpdateJob(0, JobAssembler.ToEntity(oJobDTO));
                returnUserMap = oJobDTO;
            }

            return(returnUserMap);
        }
Exemple #4
0
        public JobDTO Update(JobDTO modelDTO)
        {
            JobDTO returnUserMap = null;

            if (modelDTO != null && modelDTO.JobID > 0)
            {
                jobRepos.UpdateJob(0, JobAssembler.ToEntity(modelDTO));
                returnUserMap = modelDTO;
            }

            return(returnUserMap);
        }