public ActionResult GetEducationByEducationFormatIDORCollegeIDORDeptIDORPrfID(int?collegeID, int?EducationFormatID, int?professionID, int?skip)
        {
            CollegeEducationViewModel collegeeducationviewmodel = new CollegeEducationViewModel();

            if (skip != null)
            {
                if (professionID == null)
                {
                    if (HCRGUser == null)
                    {
                        var getCollegeEducation = _educationService.GetEducationCollegeByEducationFormatIDAndCollegeIDPaged(Convert.ToInt32(collegeID), Convert.ToInt32(EducationFormatID), 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.GetEducationCollegeByEducationFormatIDAndCollegeIDPaged(Convert.ToInt32(collegeID), Convert.ToInt32(EducationFormatID), 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.GetEducationByEducationFormatIDORCollegeIDORDeptIDORPrfIDPaged(collegeID, EducationFormatID, professionID, null, 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.GetEducationByEducationFormatIDORCollegeIDORDeptIDORPrfIDPaged(collegeID, EducationFormatID, 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 (professionID == null)
                {
                    if (HCRGUser == null)
                    {
                        var getCollegeEducation = _educationService.GetEducationCollegeByEducationFormatIDAndCollegeIDPaged(Convert.ToInt32(collegeID), Convert.ToInt32(EducationFormatID), 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.GetEducationCollegeByEducationFormatIDAndCollegeIDPaged(Convert.ToInt32(collegeID), Convert.ToInt32(EducationFormatID), 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;
                    }
                }
                else
                {
                    if (HCRGUser == null)
                    {
                        var getCollegeEducation = _educationService.GetEducationByEducationFormatIDORCollegeIDORDeptIDORPrfIDPaged(collegeID, EducationFormatID, professionID, null, 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.GetEducationByEducationFormatIDORCollegeIDORDeptIDORPrfIDPaged(collegeID, EducationFormatID, professionID, HCRGUser.UID, GlobalConst.Records.Skip, GlobalConst.Records.LandingTake, 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));
        }