public JsonResult getProfession() { var professions = _educationService.getAllProfessionActiveWeb(HCRGUser != null ? HCRGUser.OrganizationID : (Convert.ToInt32(_encryptionService.DecryptString2(System.Configuration.ConfigurationManager.AppSettings["OrganizationID"])))); ProfessionViewModel professionModel = new ProfessionViewModel(); professionModel.ProfessionResults = Mapper.Map <IEnumerable <Profession> >(professions); return(Json(professionModel.ProfessionResults, GlobalConst.Message.text_html, JsonRequestBehavior.AllowGet)); }