public ActionResult IndustryResearch() { var _res = _clientService.GetOrganizationByID(HCRGUser != null ? HCRGUser.OrganizationID : int.Parse(_encryptionService.DecryptString2(System.Configuration.ConfigurationManager.AppSettings["OrganizationID"]))); if (_res != null) { if (_res.MenuIDs != null) { if (!_res.MenuIDs.Contains("5")) { return(RedirectToAction(GlobalConst.Actions.UserController.UnauthorisePage, GlobalConst.Controllers.User, new { area = "" })); } } } IndustryResearch industryResearch = new IndustryResearch(); industryResearch = Mapper.Map <IndustryResearch>(_newsService.GetIndustryResearchContent(HCRGUser != null ? HCRGUser.OrganizationID : (Convert.ToInt32(_encryptionService.DecryptString2(System.Configuration.ConfigurationManager.AppSettings["OrganizationID"]))))); string decodedHTML = HttpUtility.HtmlDecode(industryResearch.IndustryResearchContent); if (decodedHTML != null) { industryResearch.IndustryResearchContent = decodedHTML.Replace(GlobalConst.Message.SlashStoragePath, GlobalConst.Message.StoragePath); industryResearch.IndustryResearchContent = industryResearch.IndustryResearchContent.Replace("/richtexteditor/", GlobalConst.Extension.http + GlobalConst.ConstantChar.Colon + GlobalConst.ConstantChar.ForwardSlash + GlobalConst.ConstantChar.ForwardSlash + Request.Url.Host.ToLower() + GlobalConst.ConstantChar.Colon + Request.Url.Port + "/richtexteditor/"); industryResearch.IndustryResearchContent = industryResearch.IndustryResearchContent.Replace(" ", ""); } else { industryResearch.IndustryResearchContent = decodedHTML; } return(View(industryResearch)); }
public int UpdateIndustryResearchContent(IndustryResearch industryResearchContent) { return(_carouselSetUp.UpdateIndustryResearchContent(Mapper.Map <DTO.IndustryResearch, HCRGUniversity.Core.Data.Model.IndustryResearch>(industryResearchContent))); }