/// <summary>
        /// Function to get details of certification details of a jobseeker
        /// </summary>
        /// <param name="id">CertificationId</param>
        /// <returns>CertificationObject</returns>
        public new SkillSmart.Dto.Certification GetById(string id)
        {
            Certification dbObj = base.GetById(id);

            SkillSmart.Dto.Certification seeker = MapperUtilities.MapToViewModel <SkillSmartMongoDA.Entities.Certification, SkillSmart.Dto.Certification>(dbObj);
            return(seeker);
        }
        /// <summary>
        /// Function TO create a new Certification for jobseeker
        /// </summary>
        /// <param name="entity"></param>
        public void Create(SkillSmart.Dto.Certification entity)
        {
            Certification seeker = MapperUtilities.MapToDomainModel <SkillSmart.Dto.Certification, SkillSmartMongoDA.Entities.Certification>(entity);

            base.Create(seeker);
            entity.Id = seeker.Id;
        }
        /// <summary>
        /// Function to Get list of all certification of the jobseeker
        /// </summary>
        /// <param name="id">JobSeekerId</param>
        /// <returns>List of Jobseeker Certifications</returns>
        public IEnumerable <SkillSmart.Dto.Certification> GetJobSeekerCertificationById(string id)
        {
            var jobSeekerCertificationList = this.MongoCollection.FindAllAs <Certification>();

            List <SkillSmart.Dto.Certification> jobSeekerCertification = new List <SkillSmart.Dto.Certification>();

            foreach (Certification jobSeeker in jobSeekerCertificationList)
            {
                if (jobSeeker.JobSeekerId == id)
                {
                    SkillSmart.Dto.Certification jobSeekerObj = MapperUtilities.MapToViewModel <SkillSmartMongoDA.Entities.Certification, SkillSmart.Dto.Certification>(jobSeeker);
                    jobSeekerCertification.Add(jobSeekerObj);
                }
            }
            return(jobSeekerCertification);
        }
        /// <summary>
        /// Function to Get all Work history details of the jobseeker
        /// </summary>
        /// <param name="id">JobSeekerId</param>
        /// <returns>List of work history details of the jobseeker</returns>
        public IEnumerable <SkillSmart.Dto.Certification> GetAllJobSeekersCertification(string id)
        {
            string[]      split           = id.Split(',');
            List <string> jobSeekerIdList = new List <string>();

            foreach (string item in split)
            {
                jobSeekerIdList.Add(item);
            }
            var jobSeekerWorkHistoryList = this.MongoCollection.AsQueryable <Certification>().Where(c => jobSeekerIdList.Contains(c.JobSeekerId));

            List <SkillSmart.Dto.Certification> jobSeekerWorkHostory = new List <SkillSmart.Dto.Certification>();

            foreach (Certification jobSeeker in jobSeekerWorkHistoryList)
            {
                SkillSmart.Dto.Certification jobSeekerObj = MapperUtilities.MapToViewModel <SkillSmartMongoDA.Entities.Certification, SkillSmart.Dto.Certification>(jobSeeker);
                jobSeekerWorkHostory.Add(jobSeekerObj);
            }
            return(jobSeekerWorkHostory);
        }