public ActionResult NotificationAction(int id) { getNoOfReferralAccordingToProcessLevels(); Editor EditorNote = new Editor(System.Web.HttpContext.Current, GlobalConst.Richtexteditor.EditorNote); EditorNote.ClientFolder = GlobalConst.Richtexteditor.richtexteditor; EditorNote.Width = Unit.Pixel(1050); EditorNote.Height = Unit.Pixel(660); EditorNote.ResizeMode = RTEResizeMode.Disabled; EditorNote.DisabledItems = GlobalConst.Richtexteditor.Save_help; EditorNote.MvcInit(); ViewData[GlobalConst.Richtexteditor.EditorNote] = EditorNote.MvcGetString(); PatientAndRequestModel _patientAndRequestModel = new PatientAndRequestModel(); //int[] filetypeId = { GlobalConst.FileType.UploadInitialNotifications }; //int[] filetypeIdDoc = { GlobalConst.FileType.InitialNotification, GlobalConst.FileType.ProofofService, GlobalConst.FileType.DeterminationLetter, GlobalConst.FileType.IMRApplication }; _patientAndRequestModel = Mapper.Map <PatientAndRequestModel>(_iPreparationService.getPatientAndRequestForNotificationByReferralId(id, GlobalConst.Records.Skip, GlobalConst.Records.Take5)); _patientAndRequestModel.ReferralFile = Mapper.Map <RFAReferralFile>(_intakeService.getReferralFileByRFAReferralIDandFileType(id).FirstOrDefault()); _patientAndRequestModel.ReferralFileNotification = Mapper.Map <IEnumerable <RFAReferralFile> >(_intakeService.getReferralFileByRFAReferralIDandFileType(id)); int _order = 1; foreach (RFAReferralFile _refFile in _patientAndRequestModel.ReferralFileNotification) { _refFile.Order = _order; _order++; } StorageModel _storageModel = new StorageModel(); string toSearched = Server.MapPath(System.Configuration.ConfigurationManager.AppSettings[GlobalConst.VirtualDirectoryPath.VirtualPath].ToString()); string toReplace = System.Configuration.ConfigurationManager.AppSettings[GlobalConst.VirtualDirectoryPath.VirtualPath].ToString(); foreach (RFAReferralFile _refFile in _patientAndRequestModel.ReferralFileNotification) { _storageModel = Mapper.Map <StorageModel>(_iCommonService.GetStorageStuctureByID(_refFile.RFAReferralID, GlobalConst.ConstantChar.Char_R)); _storageModel.path = Server.MapPath(System.Configuration.ConfigurationManager.AppSettings[GlobalConst.VirtualDirectoryPath.VirtualPath].ToString()); _storageModel.FolderName = GlobalConst.FolderName.LegalDocs; _refFile.RFAReferralFileFullPath = (_storageService.GeneateStorage(_storageModel) + GlobalConst.ConstantChar.DoubleBackSlash + _refFile.RFAReferralFileName).Replace(toSearched, toReplace); } //int duplicateRequest = _patientAndRequestModel.RequestDetail.Count(s => s.DecisionID == GlobalConst.Decision.Duplicate); //if (duplicateRequest > 0) //{ // _patientAndRequestModel.ReferralsForDeterminationLetter = Mapper.Map<IEnumerable<PreviousReferralFromCurrentReferral>>(_intakeService.getPreviousReferralIDFromCurrentReferralInDuplicate(id)); //} return(View(_patientAndRequestModel)); }