public JobDTO Create(JobDTO oJob) { if (oJob != null) { return(JobAssembler.ToDTO(oJobRepos.CreateJob(JobAssembler.ToEntity(oJob)))); } return(null); }
public JobDTO Create(JobDTO modelDTO) { if (modelDTO != null) { return(JobAssembler.ToDTO(jobRepos.CreateJob(JobAssembler.ToEntity(modelDTO)))); } return(null); }
public JobDTO Update(JobDTO oJobDTO) { JobDTO returnUserMap = null; if (oJobDTO != null && oJobDTO.JobID > 0) { oJobRepos.UpdateJob(0, JobAssembler.ToEntity(oJobDTO)); returnUserMap = oJobDTO; } return(returnUserMap); }
public JobDTO Update(JobDTO modelDTO) { JobDTO returnUserMap = null; if (modelDTO != null && modelDTO.JobID > 0) { jobRepos.UpdateJob(0, JobAssembler.ToEntity(modelDTO)); returnUserMap = modelDTO; } return(returnUserMap); }