public static JobDataModel ToDataModel(JobDTO jobDTO, JobApplicationDTO jobApplicationDTO, JobApplicationStateDTO jobApplicationStateDTO)
        {
            JobDataModel model = new JobDataModel();

            model.JobID = jobDTO.JobID;
            model.BusinessID = jobDTO.BusinessID;
            model.Title = jobDTO.Title;
            model.Description = jobDTO.Description;
            model.JobTypeID = jobDTO.JobTypeID;
            model.IsActive = jobDTO.IsActive;
            model.IsDeleted = jobDTO.IsDeleted;
            model.StartDate = jobDTO.StartDate;
            model.EndDate = jobDTO.EndDate;
            model.insuser = jobDTO.insuser;
            model.insdt = jobDTO.insdt;
            model.upduser = jobDTO.upduser;
            model.upddt = jobDTO.upddt;

            model.JobApplicationID = jobApplicationDTO.JobApplicationID;
            model.ApplicantUserID = jobApplicationDTO.ApplicantUserID;
            model.ApplicationDate = jobApplicationDTO.ApplicationDate;

            model.JobApplicationStateID = jobApplicationStateDTO.JobApplicationStateID;
            model.JobApplicationStatusID = jobApplicationStateDTO.JobApplicationStatusID;

            return model;
        }
        public JobApplicationStateDTO Update(JobApplicationStateDTO oJobApplicationStateDTO)
        {
            JobApplicationStateDTO returnUserMap = null;
            if (oJobApplicationStateDTO != null && oJobApplicationStateDTO.JobApplicationStateID > 0)
            {
                oJobApplicationStateRepos.UpdateJobApplicationState(0, JobApplicationStateAssembler.ToEntity(oJobApplicationStateDTO));
                returnUserMap = oJobApplicationStateDTO;
            }

            return returnUserMap;
        }
 public static JobApplicationStateDTO ToJobApplicationStateDTO(JobDataModel datamodel)
 {
     JobApplicationStateDTO dto = new JobApplicationStateDTO();
     if (datamodel != null)
     {
         dto.JobApplicationStatusID = datamodel.JobApplicationStatusID;
         dto.JobApplicationStateID = datamodel.JobApplicationStateID;
         dto.insdt = datamodel.JobApplicationinsdt;
         dto.insuser = datamodel.JobApplicationinsuser;
         dto.JobApplicationID = datamodel.JobApplicationID;
     }
     return dto;
 }
        /// <summary>
        /// Converts this instance of <see cref="JobApplicationState"/> to an instance of <see cref="JobApplicationStateDTO"/>.
        /// </summary>
        /// <param name="entity"><see cref="JobApplicationState"/> to convert.</param>
        public static JobApplicationStateDTO ToDTO(this JobApplicationState entity)
        {
            if (entity == null) return null;

            var dto = new JobApplicationStateDTO();

            dto.JobApplicationStateID = entity.JobApplicationStateID;
            dto.JobApplicationID = entity.JobApplicationID;
            dto.JobApplicationStatusID = entity.JobApplicationStatusID;
            dto.insdt = entity.insdt;
            dto.insuser = entity.insuser;

            entity.OnDTO(dto);

            return dto;
        }
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="JobApplicationStateDTO"/> converted from <see cref="JobApplicationState"/>.</param>
 static partial void OnDTO(this JobApplicationState entity, JobApplicationStateDTO dto);