public ActionResult GetAllPagedCertificationTitleOption(int skip, int?take) { PagedCertificationTitleOption _pagedCertificationTitleOption = new PagedCertificationTitleOption(); if (take == null) { var _certification = _CertificationTitleOptionService.GetAllPagedCertificationTitleOption(skip, GlobalConst.Records.Take); _pagedCertificationTitleOption.CertificationTitleOptionRecords = Mapper.Map <IEnumerable <CertificationTitleOption> >(_certification.CertificationTitleOptionDetails); } else { var _certificationList = _CertificationTitleOptionService.GetAllPagedCertificationTitleOption(skip, take.Value); _pagedCertificationTitleOption.CertificationTitleOptionRecords = Mapper.Map <IEnumerable <CertificationTitleOption> >(_certificationList.CertificationTitleOptionDetails); } _pagedCertificationTitleOption.PagedRecords = GlobalConst.Records.Take; return(Json(_pagedCertificationTitleOption, GlobalConst.Message.text_html)); }
public ActionResult Index() { Editor Editor1 = new Editor(System.Web.HttpContext.Current, "Editor1"); Editor1.ClientFolder = "/richtexteditor/"; Editor1.Width = Unit.Pixel(1050); Editor1.Height = Unit.Pixel(660); Editor1.ResizeMode = RTEResizeMode.Disabled; Editor1.SetSecurity("Gallery", "newimagepath", "AllowAccess", "true"); Editor1.SetSecurity("Gallery", "newimagepath", "StoragePath", "~" + GlobalConst.FolderName.Storage + GlobalConst.ConstantChar.ForwardSlash + GlobalConst.FolderName.Org + HCRGCLIENT.OrganizationID + GlobalConst.ConstantChar.ForwardSlash + GlobalConst.FolderName.RTEUpload, true); Editor1.SetSecurity("Gallery", "newimagepath ", "StorageName", "Image Files"); Editor1.SetSecurity("Image", "newimagepath", "AllowAccess", "true"); Editor1.SetSecurity("Image", "newimagepath", "StoragePath", "~" + GlobalConst.FolderName.Storage + GlobalConst.ConstantChar.ForwardSlash + GlobalConst.FolderName.Org + HCRGCLIENT.OrganizationID + GlobalConst.ConstantChar.ForwardSlash + GlobalConst.FolderName.RTEUpload, true); Editor1.SetSecurity("Image", "newimagepath ", "StorageName", "Image Files"); Editor1.SetSecurity("Video", "newimagepath", "AllowAccess", "true"); Editor1.SetSecurity("Video", "newimagepath", "StoragePath", "~" + GlobalConst.FolderName.Storage + GlobalConst.ConstantChar.ForwardSlash + GlobalConst.FolderName.Org + HCRGCLIENT.OrganizationID + GlobalConst.ConstantChar.ForwardSlash + GlobalConst.FolderName.RTEUpload, true); Editor1.SetSecurity("Video", "newimagepath ", "StorageName", "Video Files"); Editor1.SetSecurity("Document", "newimagepath", "AllowAccess", "true"); Editor1.SetSecurity("Document", "newimagepath", "StoragePath", "~" + GlobalConst.FolderName.Storage + GlobalConst.ConstantChar.ForwardSlash + GlobalConst.FolderName.Org + HCRGCLIENT.OrganizationID + GlobalConst.ConstantChar.ForwardSlash + GlobalConst.FolderName.RTEUpload, true); Editor1.SetSecurity("Document", "newimagepath ", "StorageName", "Document Files"); Editor1.SetSecurity("Template", "newimagepath", "AllowAccess", "true"); Editor1.SetSecurity("Template", "newimagepath", "StoragePath", "~" + GlobalConst.FolderName.Storage + GlobalConst.ConstantChar.ForwardSlash + GlobalConst.FolderName.Org + HCRGCLIENT.OrganizationID + GlobalConst.ConstantChar.ForwardSlash + GlobalConst.FolderName.RTEUpload, true); Editor1.SetSecurity("Template", "newimagepath ", "StorageName", "Templates"); Editor1.DisabledItems = "save, help"; string content = Request.Form["Editor1"]; Editor1.MvcInit(); ViewData["Editor"] = Editor1.MvcGetString(); PagedCertificationTitleOption _pagedCertificationTitleOption = new PagedCertificationTitleOption(); var _CertificationOptionList = _CertificationTitleOptionService.GetAllPagedCertificationTitleOption(GlobalConst.Records.Skip, GlobalConst.Records.Take); _pagedCertificationTitleOption.CertificationTitleOptionRecords = Mapper.Map <IEnumerable <CertificationTitleOption> >(_CertificationOptionList.CertificationTitleOptionDetails); _pagedCertificationTitleOption.PagedRecords = GlobalConst.Records.Take; _pagedCertificationTitleOption.TotalCount = _CertificationOptionList.TotalCount; return(View(_pagedCertificationTitleOption)); }