Пример #1
0
        public JobDTO Create(JobDTO modelDTO)
        {
            if (modelDTO != null)
            {
                return(JobAssembler.ToDTO(jobRepos.CreateJob(JobAssembler.ToEntity(modelDTO))));
            }

            return(null);
        }
Пример #2
0
        public JobDTO Create(JobDTO oJob)
        {
            if (oJob != null)
            {
                return(JobAssembler.ToDTO(oJobRepos.CreateJob(JobAssembler.ToEntity(oJob))));
            }

            return(null);
        }
Пример #3
0
        public JobDTO Get(int id)
        {
            JobDTO oJobDTO = null;

            if (id > 0)
            {
                oJobDTO = JobAssembler.ToDTO(jobRepos.GetJob(id));
            }

            return(oJobDTO);
        }