public ActionResult GetEducationByProfessionID(int professionID, int?skip)
        {
            CollegeEducationViewModel collegeeducationviewmodel = new CollegeEducationViewModel();

            if (skip != null)
            {
                if (HCRGUser == null)
                {
                    var getCollegeEducation = _educationService.GetEducationByProfessionIDPaged(professionID, 0, skip.Value, GlobalConst.Records.LandingTake, HCRGUser != null ? HCRGUser.OrganizationID : (Convert.ToInt32(_encryptionService.DecryptString2(System.Configuration.ConfigurationManager.AppSettings["OrganizationID"]))));
                    collegeeducationviewmodel.EducationDetailResults = Mapper.Map <IEnumerable <EducationDetail> >(getCollegeEducation.educationsDetail);
                    collegeeducationviewmodel.TotalCount             = getCollegeEducation.TotalCount;
                }
                else
                {
                    var getCollegeEducation = _educationService.GetEducationByProfessionIDPaged(professionID, HCRGUser.UID, skip.Value, GlobalConst.Records.LandingTake, HCRGUser != null ? HCRGUser.OrganizationID : (Convert.ToInt32(_encryptionService.DecryptString2(System.Configuration.ConfigurationManager.AppSettings["OrganizationID"]))));
                    collegeeducationviewmodel.EducationDetailResults = Mapper.Map <IEnumerable <EducationDetail> >(getCollegeEducation.educationsDetail);
                    collegeeducationviewmodel.TotalCount             = getCollegeEducation.TotalCount;
                }
            }
            else
            {
                if (HCRGUser == null)
                {
                    var getCollegeEducation = _educationService.GetEducationByProfessionIDPaged(professionID, 0, GlobalConst.Records.Skip, GlobalConst.Records.LandingTake, HCRGUser != null ? HCRGUser.OrganizationID : (Convert.ToInt32(_encryptionService.DecryptString2(System.Configuration.ConfigurationManager.AppSettings["OrganizationID"]))));
                    collegeeducationviewmodel.EducationDetailResults = Mapper.Map <IEnumerable <EducationDetail> >(getCollegeEducation.educationsDetail);
                    collegeeducationviewmodel.TotalCount             = getCollegeEducation.TotalCount;
                }
                else
                {
                    var getCollegeEducation = _educationService.GetEducationByProfessionIDPaged(professionID, HCRGUser.UID, GlobalConst.Records.Skip, GlobalConst.Records.LandingTake, HCRGUser != null ? HCRGUser.OrganizationID : (Convert.ToInt32(_encryptionService.DecryptString2(System.Configuration.ConfigurationManager.AppSettings["OrganizationID"]))));
                    collegeeducationviewmodel.EducationDetailResults = Mapper.Map <IEnumerable <EducationDetail> >(getCollegeEducation.educationsDetail);
                    collegeeducationviewmodel.TotalCount             = getCollegeEducation.TotalCount;
                }
            }
            return(Json(collegeeducationviewmodel, GlobalConst.Message.text_html));
        }