/// <summary>
        /// Delete User Action Activity Log
        /// </summary>
        /// <param name=></param>
        /// <returns>bool</returns>
        public async Task <bool> DeleteJobSeekerApplyStatus(int JobSeekerApplyStatusId)
        {
            #region Declare a return type with initial value.
            bool isJobSeekerApplyStatusDeleted = default(bool);
            #endregion
            try
            {
                if (JobSeekerApplyStatusId > default(int))
                {
                    #region Vars
                    JobSeekerApplyStatus JobSeekerApplyStatus = null;
                    #endregion
                    #region Get JobSeekerApplyStatus by id
                    JobSeekerApplyStatus = await UnitOfWork.JobSeekerApplyStatusRepository.GetById(JobSeekerApplyStatusId);

                    #endregion
                    #region check if object is not null
                    if (JobSeekerApplyStatus != null)
                    {
                        JobSeekerApplyStatus.IsDeleted = (byte)DeleteStatusEnum.Deleted;
                        #region Apply the changes to the database
                        UnitOfWork.JobSeekerApplyStatusRepository.Update(JobSeekerApplyStatus);
                        isJobSeekerApplyStatusDeleted = await UnitOfWork.Commit() > default(int);

                        #endregion
                    }
                    #endregion
                }
            }
            catch (Exception exception)
            {
            }
            return(isJobSeekerApplyStatusDeleted);
        }
 /// <summary>
 /// Mapping User Activity Log DTO to Action
 /// </summary>
 /// <param name=></param>
 /// <param name=></param>
 /// <returns></returns>
 public JobSeekerApplyStatus MappingJobSeekerApplyStatusupdateDTOToJobSeekerApplyStatus(JobSeekerApplyStatus jobSeekerApplyStatus, JobSeekerApplyStatusUpdateDTO JobSeekerApplyStatusUpdateDTO)
 {
     #region Declare Return Var with Intial Value
     JobSeekerApplyStatus JobSeekerApplyStatus = jobSeekerApplyStatus;
     #endregion
     try
     {
         if (JobSeekerApplyStatusUpdateDTO.JobSeekerApplyStatusId > default(int))
         {
             JobSeekerApplyStatus.JobSeekerApplyStatusId   = JobSeekerApplyStatusUpdateDTO.JobSeekerApplyStatusId;
             JobSeekerApplyStatus.JobSeekerApplyStatusName = JobSeekerApplyStatusUpdateDTO.JobSeekerApplyStatusName;
         }
     }
     catch (Exception exception) { }
     return(JobSeekerApplyStatus);
 }
 /// <summary>
 /// Mapping user Action Actitvity Log
 /// </summary>
 /// <param name=></ param >
 /// <returns>Task<JobSeekerApplyStatus></returns>
 public JobSeekerApplyStatus MappingJobSeekerApplyStatusAddDTOToJobSeekerApplyStatus(JobSeekerApplyStatusAddDTO JobSeekerApplyStatusAddDTO)
 {
     #region Declare a return type with initial value.
     JobSeekerApplyStatus JobSeekerApplyStatus = null;
     #endregion
     try
     {
         JobSeekerApplyStatus = new JobSeekerApplyStatus
         {
             JobSeekerApplyStatusName = JobSeekerApplyStatusAddDTO.JobSeekerApplyStatusName,
             CreationDate             = DateTime.Now,
             IsDeleted = (byte)DeleteStatusEnum.NotDeleted
         };
     }
     catch (Exception exception) { }
     return(JobSeekerApplyStatus);
 }
        /// <summary>
        /// Get user Action Activity Log By Id
        /// </summary>
        /// <returns>List<JobSeekerApplyStatusReturnDTO></returns>
        public async Task <JobSeekerApplyStatusReturnDTO> GetJobSeekerApplyStatusById(int JobSeekerApplyStatusId)
        {
            #region Declare a return type with initial value.
            JobSeekerApplyStatusReturnDTO JobSeekerApplyStatus = new JobSeekerApplyStatusReturnDTO();
            #endregion
            try
            {
                JobSeekerApplyStatus jobSeekerApplyStatus = await UnitOfWork.JobSeekerApplyStatusRepository.GetById(JobSeekerApplyStatusId);

                if (jobSeekerApplyStatus != null)
                {
                    if (jobSeekerApplyStatus.IsDeleted != (byte)DeleteStatusEnum.Deleted)
                    {
                        JobSeekerApplyStatus = JobSeekerApplyStatusMapping.MappingJobSeekerApplyStatusToJobSeekerApplyStatusReturnDTO(jobSeekerApplyStatus);
                    }
                }
            }
            catch (Exception exception)
            {
            }
            return(JobSeekerApplyStatus);
        }
        /// <summary>
        /// Create User Action Activity Log
        /// </summary>
        /// <param name=></param>
        /// <returns>bool</returns>
        public async Task <bool> AddJobSeekerApplyStatus(JobSeekerApplyStatusAddDTO JobSeekerApplyStatusAddDTO)
        {
            #region Declare a return type with initial value.
            bool isJobSeekerApplyStatusCreated = default(bool);
            #endregion
            try
            {
                #region Vars
                JobSeekerApplyStatus JobSeekerApplyStatus = null;
                #endregion
                JobSeekerApplyStatus = JobSeekerApplyStatusMapping.MappingJobSeekerApplyStatusAddDTOToJobSeekerApplyStatus(JobSeekerApplyStatusAddDTO);
                if (JobSeekerApplyStatus != null)
                {
                    await UnitOfWork.JobSeekerApplyStatusRepository.Insert(JobSeekerApplyStatus);

                    isJobSeekerApplyStatusCreated = await UnitOfWork.Commit() > default(int);
                }
            }
            catch (Exception exception)
            {
            }
            return(isJobSeekerApplyStatusCreated);
        }
        /// <summary>
        /// Update User Action Activity Log
        /// </summary>
        /// <param name=></param>
        /// <returns>bool</returns>
        public async Task <bool> UpdateJobSeekerApplyStatus(JobSeekerApplyStatusUpdateDTO JobSeekerApplyStatusUpdateDTO)
        {
            #region Declare a return type with initial value.
            bool isJobSeekerApplyStatusUpdated = default(bool);
            #endregion
            try
            {
                if (JobSeekerApplyStatusUpdateDTO != null)
                {
                    #region Vars
                    JobSeekerApplyStatus JobSeekerApplyStatus = null;
                    #endregion
                    #region Get Activity By Id
                    JobSeekerApplyStatus = await UnitOfWork.JobSeekerApplyStatusRepository.GetById(JobSeekerApplyStatusUpdateDTO.JobSeekerApplyStatusId);

                    #endregion
                    if (JobSeekerApplyStatus != null)
                    {
                        #region  Mapping
                        JobSeekerApplyStatus = JobSeekerApplyStatusMapping.MappingJobSeekerApplyStatusupdateDTOToJobSeekerApplyStatus(JobSeekerApplyStatus, JobSeekerApplyStatusUpdateDTO);
                        #endregion
                        if (JobSeekerApplyStatus != null)
                        {
                            #region  Update Entity
                            UnitOfWork.JobSeekerApplyStatusRepository.Update(JobSeekerApplyStatus);
                            isJobSeekerApplyStatusUpdated = await UnitOfWork.Commit() > default(int);

                            #endregion
                        }
                    }
                }
            }
            catch (Exception exception)
            {
            }
            return(isJobSeekerApplyStatusUpdated);
        }
 public JobSeekerApplyStatusReturnDTO MappingJobSeekerApplyStatusToJobSeekerApplyStatusReturnDTO(JobSeekerApplyStatus JobSeekerApplyStatus)
 {
     #region Declare a return type with initial value.
     JobSeekerApplyStatusReturnDTO JobSeekerApplyStatusReturnDTO = null;
     #endregion
     try
     {
         if (JobSeekerApplyStatus != null)
         {
             JobSeekerApplyStatusReturnDTO = new JobSeekerApplyStatusReturnDTO
             {
                 JobSeekerApplyStatusId   = JobSeekerApplyStatus.JobSeekerApplyStatusId,
                 JobSeekerApplyStatusName = JobSeekerApplyStatus.JobSeekerApplyStatusName
             };
         }
     }
     catch (Exception exception)
     { }
     return(JobSeekerApplyStatusReturnDTO);
 }