Exemple #1
0
        public JobApplicationDTO Create(JobApplicationDTO modelDTO)
        {
            if (modelDTO != null)
            {
                return(JobApplicationAssembler.ToDTO(jobApplicationRepos.CreateJobApplication(JobApplicationAssembler.ToEntity(modelDTO))));
            }

            return(null);
        }
        public JobApplicationDTO Update(JobApplicationDTO oJobApplicationDTO)
        {
            JobApplicationDTO returnUserMap = null;

            if (oJobApplicationDTO != null && oJobApplicationDTO.JobApplicationID > 0)
            {
                oJobApplicationRepos.UpdateJobApplication(0, JobApplicationAssembler.ToEntity(oJobApplicationDTO));
                returnUserMap = oJobApplicationDTO;
            }

            return(returnUserMap);
        }