public JobDTO Create(JobDTO modelDTO) { if (modelDTO != null) { return(JobAssembler.ToDTO(jobRepos.CreateJob(JobAssembler.ToEntity(modelDTO)))); } return(null); }
public JobDTO Create(JobDTO oJob) { if (oJob != null) { return(JobAssembler.ToDTO(oJobRepos.CreateJob(JobAssembler.ToEntity(oJob)))); } return(null); }
public JobDTO Get(int id) { JobDTO oJobDTO = null; if (id > 0) { oJobDTO = JobAssembler.ToDTO(jobRepos.GetJob(id)); } return(oJobDTO); }