public ActionResult WikiPolicy() { try { //Get Policy Items SharePointDAL dal = new SharePointDAL(); WikiPolicyDocuments poldocs = dal.GetWikiPolicyDocuments(); return(View(poldocs)); } catch (Exception ex) { UserManager user = (UserManager)Session["CurrentUser"]; LogHelper.AddLog(new LogEntity(AppConstant.PartitionError, user.EmailID.ToString(), AppConstant.ApplicationName, "Wiki, WikiPolicy", ex.Message, ex.StackTrace)); throw; } }
public ActionResult TrainingDocumentTree(string folder) { WikiPolicyDocuments poldocs = new WikiPolicyDocuments(); try { SharePointDAL spDal = new SharePointDAL(); poldocs = spDal.GetWikiDocumentTree(Server, folder); return(PartialView("_TrainingMaterials", poldocs.ListOfWikiDoc)); } catch (Exception ex) { UserManager user = (UserManager)Session["CurrentUser"]; LogHelper.AddLog(new LogEntity(AppConstant.PartitionError, user.EmailID.ToString(), AppConstant.ApplicationName, "Training, TrainingDocumentTree", ex.Message, ex.StackTrace)); throw; } }
public ActionResult WikiPolicy() { try { SPAuthUtility spUtil = new SPAuthUtility(); WikiPolicyDocuments poldocs = spUtil.GetWikiPolicyDocuments(); return(View(poldocs)); } catch (Exception ex) { // UserManager user = (UserManager)Session["CurrentUser"]; //LogHelper.AddLog("WikiController", ex.Message, ex.StackTrace, "HCL.Academy.Web", user.EmailID); TelemetryClient telemetry = new TelemetryClient(); telemetry.TrackException(ex); throw; } }
public ActionResult FAQ() { try { IDAL dal = (new DALFactory()).GetInstance(); List <WikiPolicies> wikiPol = dal.GetAllWikiPolicies(); //Get all the Wiki policies WikiPolicyDocuments poldocs = new WikiPolicyDocuments(); poldocs.ListOfWiki = wikiPol; return(View(poldocs)); } catch (Exception ex) { UserManager user = (UserManager)Session["CurrentUser"]; LogHelper.AddLog(new LogEntity(AppConstant.PartitionError, user.EmailID.ToString(), AppConstant.ApplicationName, "FAQ, FAQ", ex.Message, ex.StackTrace)); throw; } }
public ActionResult TrainingDocumentTree(string folder) { WikiPolicyDocuments poldocs = new WikiPolicyDocuments(); try { SPAuthUtility spUtil = new SPAuthUtility(); poldocs = spUtil.GetWikiDocumentTree(Server, folder); return(PartialView("_TrainingMaterials", poldocs.ListOfWikiDoc)); } catch (Exception ex) { //LogHelper.AddLog("TrainingController", ex.Message, ex.StackTrace, "HCL.Academy.Web", user.EmailID); TelemetryClient telemetry = new TelemetryClient(); telemetry.TrackException(ex); throw; } }
public ActionResult FAQ() { try { // IDAL dal = (new DALFactory()).GetInstance(); SPAuthUtility spUtil = new SPAuthUtility(); List <WikiPolicies> wikiPol = spUtil.GetAllWikiPolicies(); //Get all the Wiki policies WikiPolicyDocuments poldocs = new WikiPolicyDocuments(); poldocs.ListOfWiki = wikiPol; return(View(poldocs)); } catch (Exception ex) { //UserManager user = (UserManager)Session["CurrentUser"]; // LogHelper.AddLog("FAQController", ex.Message, ex.StackTrace, "HCL.Academy.Web", user.EmailID); TelemetryClient telemetry = new TelemetryClient(); telemetry.TrackException(ex); throw; } }