コード例 #1
0
        /// <summary>
        /// To delete a particular work history details of the jobseeker
        /// </summary>
        /// <param name="id">WorkHistoryId</param>
        public void Delete(string id)
        {
            ISkillReferenceService <SkillReference> jobSeekerSkillReferenceService = ServiceFactory.GetSkillReference();
            var jobSeekerWorkHistory = jobSeekerSkillReferenceService.GetById(id);

            jobSeekerSkillReferenceService.Delete(jobSeekerWorkHistory);
        }
コード例 #2
0
        public static ISkillReferenceService <SkillReference> GetSkillReference()
        {
            ISkillReferenceService <SkillReference> serviceObj = null;

            switch (sectionHandler.ConnectionStringName)
            {
            case DataBaseType.SKILLSMART_MONGO_DB: serviceObj = new SkillReferenceService(DatabaseFactory.CreateMongoDatabase());
                break;

            default: serviceObj = new SkillReferenceService(DatabaseFactory.CreateMongoDatabase());
                break;
            }
            return(serviceObj);
        }