public ViewResult ViewPageContent(NeptunePageTypeEnum neptunePageTypeEnum) { var neptunePageType = NeptunePageType.ToType(neptunePageTypeEnum); var viewData = new DisplayPageContentViewData(CurrentPerson, neptunePageType); return(RazorView <DisplayPageContent, DisplayPageContentViewData>(viewData)); }
public static NeptunePageType ToType(NeptunePageTypeEnum enumValue) { switch (enumValue) { case NeptunePageTypeEnum.About: return(About); case NeptunePageTypeEnum.AboutModelingBMPPerformance: return(AboutModelingBMPPerformance); case NeptunePageTypeEnum.Assessment: return(Assessment); case NeptunePageTypeEnum.BulkUploadFieldVisits: return(BulkUploadFieldVisits); case NeptunePageTypeEnum.BulkUploadRequest: return(BulkUploadRequest); case NeptunePageTypeEnum.DelineationMap: return(DelineationMap); case NeptunePageTypeEnum.DelineationReconciliationReport: return(DelineationReconciliationReport); case NeptunePageTypeEnum.EditOVTAArea: return(EditOVTAArea); case NeptunePageTypeEnum.ExportAssessmentGeospatialData: return(ExportAssessmentGeospatialData); case NeptunePageTypeEnum.FieldRecords: return(FieldRecords); case NeptunePageTypeEnum.FindABMP: return(FindABMP); case NeptunePageTypeEnum.FundingSourcesList: return(FundingSourcesList); case NeptunePageTypeEnum.HippocampHomePage: return(HippocampHomePage); case NeptunePageTypeEnum.HippocampLabelsAndDefinitionsList: return(HippocampLabelsAndDefinitionsList); case NeptunePageTypeEnum.HippocampTraining: return(HippocampTraining); case NeptunePageTypeEnum.HomeAdditionalInfo: return(HomeAdditionalInfo); case NeptunePageTypeEnum.HomeMapInfo: return(HomeMapInfo); case NeptunePageTypeEnum.HomePage: return(HomePage); case NeptunePageTypeEnum.HRUCharacteristics: return(HRUCharacteristics); case NeptunePageTypeEnum.InviteUser: return(InviteUser); case NeptunePageTypeEnum.Jurisdiction: return(Jurisdiction); case NeptunePageTypeEnum.LandUseBlock: return(LandUseBlock); case NeptunePageTypeEnum.LaunchPad: return(LaunchPad); case NeptunePageTypeEnum.Legal: return(Legal); case NeptunePageTypeEnum.ManageCustomAttributeInstructions: return(ManageCustomAttributeInstructions); case NeptunePageTypeEnum.ManageCustomAttributeTypeInstructions: return(ManageCustomAttributeTypeInstructions); case NeptunePageTypeEnum.ManageCustomAttributeTypesList: return(ManageCustomAttributeTypesList); case NeptunePageTypeEnum.ManageObservationTypeInstructions: return(ManageObservationTypeInstructions); case NeptunePageTypeEnum.ManageObservationTypeLabelsAndUnitsInstructions: return(ManageObservationTypeLabelsAndUnitsInstructions); case NeptunePageTypeEnum.ManageObservationTypeObservationInstructions: return(ManageObservationTypeObservationInstructions); case NeptunePageTypeEnum.ManageObservationTypesList: return(ManageObservationTypesList); case NeptunePageTypeEnum.ManagerDashboard: return(ManagerDashboard); case NeptunePageTypeEnum.ManageTreatmentBMPTypeInstructions: return(ManageTreatmentBMPTypeInstructions); case NeptunePageTypeEnum.ManageTreatmentBMPTypesList: return(ManageTreatmentBMPTypesList); case NeptunePageTypeEnum.ModelingHomePage: return(ModelingHomePage); case NeptunePageTypeEnum.OrganizationsList: return(OrganizationsList); case NeptunePageTypeEnum.OVTAIndex: return(OVTAIndex); case NeptunePageTypeEnum.OVTAInstructions: return(OVTAInstructions); case NeptunePageTypeEnum.ParcelList: return(ParcelList); case NeptunePageTypeEnum.RegionalSubbasins: return(RegionalSubbasins); case NeptunePageTypeEnum.RequestSupport: return(RequestSupport); case NeptunePageTypeEnum.Training: return(Training); case NeptunePageTypeEnum.TrashHomePage: return(TrashHomePage); case NeptunePageTypeEnum.TrashModuleProgramOverview: return(TrashModuleProgramOverview); case NeptunePageTypeEnum.TreatmentBMP: return(TreatmentBMP); case NeptunePageTypeEnum.TreatmentBMPAssessment: return(TreatmentBMPAssessment); case NeptunePageTypeEnum.TreatmentBMPType: return(TreatmentBMPType); case NeptunePageTypeEnum.UploadTreatmentBMPs: return(UploadTreatmentBMPs); case NeptunePageTypeEnum.ViewTreatmentBMPModelingAttributes: return(ViewTreatmentBMPModelingAttributes); case NeptunePageTypeEnum.WaterQualityMaintenancePlan: return(WaterQualityMaintenancePlan); case NeptunePageTypeEnum.WaterQualityMaintenancePlanOandMVerifications: return(WaterQualityMaintenancePlanOandMVerifications); default: throw new ArgumentException(string.Format("Unable to map Enum: {0}", enumValue)); } }