public static void RegisterRoutes(AreaRegistrationContext context) { Faqs = context.MapAreaRoute <FaqsController>("faqs", c => c.Faqs); Subcategory = context.MapAreaRoute <FaqsController, Guid>("faqs/{subcategory}/{subcategoryId}", c => c.Subcategory); PartialSubcategory = context.MapAreaRoute <FaqsController, Guid>("faqs/subcategory/partial", c => c.PartialSubcategory); Faq = context.MapAreaRoute <FaqsController, Guid, string>("faqs/{subcategory}/{title}/{id}", c => c.Faq); PartialFaq = context.MapAreaRoute <FaqsController, Guid, string>("faqs/faq/partial", c => c.PartialFaq); Search = context.MapAreaRoute <FaqsController, Guid?, string>("faqs/search", c => c.Search); PartialSearch = context.MapAreaRoute <FaqsController, Guid?, string>("faqs/search/partial", c => c.PartialSearch); Hash = context.MapAreaRoute <FaqsController, Guid?, Guid?, Guid?, string>("faqs/hash", c => c.Hash); ApiMarkHelpful = context.MapAreaRoute <FaqsApiController, Guid>("faqs/api/helpful", c => c.MarkFaqHelpful); ApiMarkNotHelpful = context.MapAreaRoute <FaqsApiController, Guid>("faqs/api/nothelpful", c => c.MarkFaqNotHelpful); context.MapRedirectRoute("ui/unregistered/common/emailfeedbackform.aspx", Faqs); context.MapRedirectRoute("faq", Faqs); context.MapAreaRoute <FaqsController, string, string>(false, "faq/{subcategory}/{subcategoryId}", c => c.OldSubcategoryFaqs); context.MapAreaRoute <FaqsController, string, string>(false, "faqs/{subcategory}/{subcategoryId}", c => c.OldSubcategoryFaqs); context.MapRedirectRoute("faq/{subcategory}/{title}/{id}", Faq, new { subcategory = new RedirectRouteValue(), title = new RedirectRouteValue(), id = new RedirectRouteValue() }); context.MapRedirectRoute("faq/search", Search); }
public static void RegisterRoutes(AreaRegistrationContext context) { Search = context.MapAreaRoute <JobAdsController>("landing/search/jobs", c => c.Search); Sample = context.MapAreaRoute <JobAdsController>("landing/search/jobs/sample", c => c.Sample); context.MapRedirectRoute("landing/search/jobs/SimpleSearch.aspx", Search); context.MapRedirectRoute("landing/search/jobs/Sample.aspx", Sample); }
public static void RegisterRoutes(AreaRegistrationContext context) { Home = context.MapAreaRoute <HomeController, bool?>("", c => c.Home); context.MapAreaRoute <HomeController, string>("partners/{pcode}", c => c.Partners); context.MapRedirectRoute("guests/profile", ProfilesRoutes.Profile, new AuthorizedConstraint()); GuestsProfile = context.MapAreaRoute <GuestsController>("guests/profile", c => c.Profile); context.MapRedirectRoute("guests/profile.aspx", GuestsProfile); }
public static void RegisterRoutes(AreaRegistrationContext context) { context.MapBundleVersions(); // Old combres. context.MapRedirectRoute("combres.axd/{*catchall}", HomeRoutes.Home); }
public static void RegisterRoutes(AreaRegistrationContext context) { Settings = context.MapAreaRoute <SettingsController>("members/settings", c => c.Settings); context.MapRedirectRoute("ui/registered/networkers/CommunicationSettings.aspx", Settings); Communications = context.MapAreaRoute <SettingsController>("members/settings/communications", c => c.Communications); Deactivate = context.MapAreaRoute <SettingsController>("members/settings/deactivate", c => c.Deactivate); }
public static void RegisterRoutes(AreaRegistrationContext context) { Activation = context.MapAreaRoute <ActivationController, string>("accounts/activation", c => c.Activation); context.MapRedirectRoute("activation.aspx", Activation); context.MapRedirectRoute("ui/unregistered/accountactivationform.aspx", Activation); Verification = context.MapAreaRoute <ActivationController, string>("accounts/verification", c => c.Verification); NotActivated = context.MapAreaRoute <ActivationController>("accounts/notactivated", c => c.NotActivated); NotVerified = context.MapAreaRoute <ActivationController>("accounts/notverified", c => c.NotVerified); ActivationSent = context.MapAreaRoute <ActivationController>("accounts/activationsent", c => c.ActivationSent); context.MapRedirectRoute("ui/registered/common/activationemailsentform.aspx", NotActivated); VerificationSent = context.MapAreaRoute <ActivationController>("accounts/verificationsent", c => c.VerificationSent); ChangeEmail = context.MapAreaRoute <ActivationController>("accounts/changeemail", c => c.ChangeEmail); ChangePassword = context.MapAreaRoute <PasswordController>("accounts/changepassword", c => c.ChangePassword); MustChangePassword = context.MapAreaRoute <PasswordController>("accounts/mustchangepassword", c => c.MustChangePassword); NewPassword = context.MapAreaRoute <PasswordController, string>("accounts/newpassword", c => c.NewPassword); context.MapRedirectRoute("guests/RequestNewPassword.aspx", NewPassword); context.MapRedirectRoute("ui/unregistered/common/RequestNewPassword.aspx", NewPassword); context.MapRedirectRoute("ui/registered/common/ChangeEmailForm.aspx", ChangeEmail); ApiLogIn = context.MapAreaRoute <LoginApiController, LoginModel>("accounts/api/login", c => c.LogIn); ApiLogOut = context.MapAreaRoute <LoginApiController>("accounts/api/logout", c => c.LogOut); PreferredUserType = context.MapAreaRoute <AccountsApiController, UserType>("accounts/api/preferredusertype", c => c.PreferredUserType); Welcome = context.MapAreaRoute <ActivationController>("accounts/welcome", c => c.Welcome); Unsubscribe = context.MapAreaRoute <SettingsController, UnsubscribeRequestModel>("accounts/settings/unsubscribe", c => c.Unsubscribe); context.MapRedirectRoute("unsubscribe.aspx", Unsubscribe); ApiLinkedInLogin = context.MapAreaRoute <LinkedInApiController, LinkedInApiProfile>("accounts/linkedin/api/login", c => c.LogIn); }
public static void RegisterRoutes(AreaRegistrationContext context) { Search = context.MapAreaRoute <SearchController, MemberSearchCriteria, CandidatesPresentationModel, bool?>("search/candidates", c => c.Search); PartialSearch = context.MapAreaRoute <SearchController, MemberSearchCriteria, CandidatesPresentationModel>("search/candidates/partial", c => c.PartialSearch); Tips = context.MapAreaRoute <SearchController>("search/candidates/tips", c => c.Tips); Results = context.MapAreaRoute <SearchController, bool?>("search/candidates/results", c => c.Results); Saved = context.MapAreaRoute <SearchController, Guid>("search/candidates/saved/{savedSearchId}", c => c.Saved); context.MapAreaRoute <SearchesController>("employers/searches", c => c.Searches); PartialSearches = context.MapAreaRoute <SearchesController, Pagination, int>("employers/searches/partial", c => c.PartialSearches); ApiSaveSearch = context.MapAreaRoute <SearchesApiController, string, bool>("employers/searches/api/save", c => c.SaveSearch); context.MapRedirectRoute("search/resumes/SimpleSearch.aspx", Search); context.MapRedirectRoute("search/resumes/AdvancedSearch.aspx", Search); context.MapRedirectRoute("search/candidates/current", Results); context.MapRedirectRoute("search/resumes/Tips.aspx", Tips); }
public static void RegisterRoutes(AreaRegistrationContext context) { LogIn = context.MapAreaRoute <LoginController>("employers/login", c => c.LogIn); Join = context.MapAreaRoute <LoginController>("employers/join", c => c.Join); HideCreditReminder = context.MapAreaRoute <StateApiController>("employers/state/hidecreditreminder", c => c.HideCreditReminder); HideBulkCreditReminder = context.MapAreaRoute <StateApiController>("employers/state/hidebulkcreditreminder", c => c.HideBulkCreditReminder); context.MapRedirectRoute("employers/Join.aspx", Join); }
public static void RegisterRoutes(AreaRegistrationContext context) { Profile = context.MapAreaRoute <ProfilesController>("members/profile", c => c.Profile); context.MapAreaRoute <ProfilesController>("members/profile/contactdetails", c => c.ContactDetails); context.MapAreaRoute <ProfilesController>("members/profile/desiredjob", c => c.DesiredJob); context.MapAreaRoute <ProfilesController>("members/profile/careerobjectives", c => c.CareerObjectives); context.MapAreaRoute <ProfilesController>("members/profile/employmenthistory", c => c.EmploymentHistory); context.MapAreaRoute <ProfilesController>("members/profile/education", c => c.Education); context.MapAreaRoute <ProfilesController>("members/profile/other", c => c.Other); Photo = context.MapAreaRoute <ProfileFilesController>("members/profile/photo", c => c.Photo); Download = context.MapAreaRoute <ProfileFilesController>("members/profile/download", c => c.Download); DownloadResume = context.MapAreaRoute <ProfileFilesController, Guid>("members/profile/resumes/{fileReferenceId}/download", c => c.DownloadResume); UpdateStatus = context.MapAreaRoute <StatusController, CandidateStatus?>("members/profile/status/update", c => c.UpdateStatus); context.MapRedirectRoute("members/profile/status/updateavailablenow", UpdateStatus, new { status = CandidateStatus.AvailableNow.ToString() }); ApiUploadResume = context.MapAreaRoute <ProfilesApiController, HttpPostedFileBase>("members/profile/api/upload", c => c.Upload); ApiParseResume = context.MapAreaRoute <ProfilesApiController, Guid>("members/profile/api/parse", c => c.Parse); ApiUploadPhoto = context.MapAreaRoute <ProfilesApiController, HttpPostedFileBase>("members/profile/api/uploadphoto", c => c.UploadPhoto); ApiRemovePhoto = context.MapAreaRoute <ProfilesApiController>("members/profile/api/removephoto", c => c.RemovePhoto); ApiSetCurrent = context.MapAreaRoute <ProfilesApiController>("members/profile/api/setcurrent", c => c.SetCurrent); ApiSendResume = context.MapAreaRoute <ProfilesApiController>("members/profile/api/sendresume", c => c.SendResume); ApiVisibility = context.MapAreaRoute <ProfilesApiController, VisibilityModel>("members/profile/api/visibility", c => c.Visibility); ApiContactDetails = context.MapAreaRoute <ProfilesApiController, ContactDetailsMemberModel>("members/profile/api/contactdetails", c => c.ContactDetails); ApiDesiredJob = context.MapAreaRoute <ProfilesApiController, DesiredJobMemberModel>("members/profile/api/desiredjob", c => c.DesiredJob); ApiCareerObjectives = context.MapAreaRoute <ProfilesApiController, CareerObjectivesMemberModel>("members/profile/api/careerobjectives", c => c.CareerObjectives); ApiEmploymentHistory = context.MapAreaRoute <ProfilesApiController, EmploymentHistoryUpdateModel>("members/profile/api/employmenthistory", c => c.EmploymentHistory); ApiEducation = context.MapAreaRoute <ProfilesApiController, EducationUpdateModel>("members/profile/api/education", c => c.Education); ApiOther = context.MapAreaRoute <ProfilesApiController, OtherMemberModel>("members/profile/api/other", c => c.Other); ApiRemoveJob = context.MapAreaRoute <ProfilesApiController, Guid>("members/profile/api/employmenthistory/removejob", c => c.RemoveJob); ApiRemoveSchool = context.MapAreaRoute <ProfilesApiController, Guid>("members/profile/api/education/removeschool", c => c.RemoveSchool); // Old pages. context.MapRedirectRoute("ui/registered/networkers/NetworkerMyResumeForm.aspx", Profile); context.MapRedirectRoute("ui/registered/networkers/AboutMe.aspx", Profile); context.MapRedirectRoute("ui/registered/networkers/employmentdetails.aspx", Profile); }
public static void RegisterRoutes(AreaRegistrationContext context) { JobAds = context.MapAreaRoute <JobAdsController>("employers/candidates/jobads", c => c.JobAds); JobAd = context.MapAreaRoute <JobAdController, Guid?>("employers/jobads/jobad", c => c.JobAd); Preview = context.MapAreaRoute <JobAdController, Guid, JobAdFeaturePack?>("employers/jobads/jobad/preview", c => c.Preview); Account = context.MapAreaRoute <JobAdController>("employers/jobads/jobad/account", c => c.Account); Payment = context.MapAreaRoute <JobAdController, Guid, JobAdFeaturePack>("employers/jobads/jobad/payment", c => c.Payment); Receipt = context.MapAreaRoute <JobAdController, Guid, Guid>("employers/jobads/jobad/receipt", c => c.Receipt); context.MapRedirectRoute("ui/registered/employers/EmployerNewJobAd.aspx", JobAd); Logo = context.MapAreaRoute <JobAdFilesController, Guid>("employers/jobads/logos/{fileId}", c => c.Logo); // JobAds API. ApiJobAds = context.MapAreaRoute <JobAdsApiController>("employers/candidates/jobads/api", c => c.JobAds); ApiShortlistCandidatesForJobAd = context.MapAreaRoute <JobAdsApiController, Guid, Guid[]>("employers/candidates/jobads/api/{jobAdId}/shortlistcandidates", c => c.ShortlistCandidates); ApiRejectCandidatesForJobAd = context.MapAreaRoute <JobAdsApiController, Guid, Guid[]>("employers/candidates/jobads/api/{jobAdId}/rejectcandidates", c => c.RejectCandidates); ApiRemoveCandidatesFromJobAd = context.MapAreaRoute <JobAdsApiController, Guid, Guid[]>("employers/candidates/jobads/api/{jobAdId}/removecandidates", c => c.RemoveCandidates); ApiUndoShortlistCandidatesForJobAd = context.MapAreaRoute <JobAdsApiController, Guid, Guid[], ApplicantStatus?>("employers/candidates/jobads/api/{jobAdId}/undoshortlistcandidates", c => c.UndoShortlistCandidates); ApiUndoRejectCandidatesForJobAd = context.MapAreaRoute <JobAdsApiController, Guid, Guid[], ApplicantStatus>("employers/candidates/jobads/api/{jobAdId}/undorejectcandidates", c => c.UndoRejectCandidates); ApiUndoRemoveCandidatesFromJobAd = context.MapAreaRoute <JobAdsApiController, Guid, Guid[]>("employers/candidates/jobads/api/{jobAdId}/undoremovecandidates", c => c.UndoRemoveCandidates); // JobAds. PartialManageJobAdCandidates = context.MapAreaRoute <ManageCandidatesController, ApplicantStatus, MemberSearchSortCriteria, CandidatesPresentationModel>("employers/candidates/manage/partial", c => c.Partial); ManageJobAdCandidates = context.MapAreaRoute <ManageCandidatesController, Guid, ApplicantStatus?, MemberSearchSortCriteria, CandidatesPresentationModel>("employers/candidates/manage/{jobAdId}", c => c.Manage); ManageCandidates = context.MapAreaRoute <ManageCandidatesController>("employers/candidates/manage", c => c.ManageCandidates); context.MapAreaRoute <SuggestedCandidatesController, string>("employers/candidates/suggested", c => c.ExternalSuggestedCandidates); SuggestedCandidates = context.MapAreaRoute <SuggestedCandidatesController, Guid, CandidatesPresentationModel>("employers/candidates/suggested/{jobAdId}", c => c.SuggestedCandidates); PartialSuggestedCandidates = context.MapAreaRoute <SuggestedCandidatesController, MemberSearchCriteria, CandidatesPresentationModel>("employers/candidates/suggested/partial", c => c.PartialSuggestedCandidates); context.MapRedirectRoute("ui/registered/employers/CandidateSuggestion.aspx", SuggestedCandidates); }
public static void RegisterRoutes(AreaRegistrationContext context) { Blogs = context.MapAreaRoute <DeprecatedController>("blogs", c => c.Blogs); context.MapRedirectRoute("ui/registered/blogs/{*catchall}", Blogs); context.MapRedirectRoute("ui/registered/blog/{*catchall}", Blogs); context.MapRedirectRoute("ui/unregistered/blogs/{*catchall}", Blogs); context.MapRedirectRoute("ui/unregistered/blog/{*catchall}", Blogs); Groups = context.MapAreaRoute <DeprecatedController>("groups", c => c.Groups); context.MapRedirectRoute("groups/{*catchall}", Groups); context.MapRedirectRoute("ui/unregistered/groups/{*catchall}", Groups); context.MapRedirectRoute("ui/registered/networkers/groups/{*catchall}", Groups); }
public static void RegisterRoutes(AreaRegistrationContext context) { NewOrder = context.MapAreaRoute <NewOrderController>("employers/products/neworder", c => c.NewOrder); Choose = context.MapAreaRoute <NewOrderController, string>("employers/products/choose", c => c.Choose); Account = context.MapAreaRoute <NewOrderController>("employers/products/account", c => c.Account); Payment = context.MapAreaRoute <NewOrderController>("employers/products/payment", c => c.Payment); Receipt = context.MapAreaRoute <NewOrderController>("employers/products/receipt", c => c.Receipt); context.MapRedirectRoute("employers/PricingPlan.aspx", NewOrder); PrepareOrder = context.MapAreaRoute <OrdersController, Guid[], CheckBoxValue, Guid?, CreditCardType?>("employers/products/prepareorder", c => c.PrepareOrder); PrepareCompactOrder = context.MapAreaRoute <OrdersController, Guid[]>("employers/products/preparecompactorder", c => c.PrepareCompactOrder); Print = context.MapAreaRoute <ProductsController, Guid>("employers/products/print/{id}", c => c.Print); Credits = context.MapAreaRoute <ProductsController>("employers/products/credits", c => c.Credits); Orders = context.MapAreaRoute <ProductsController>("employers/products/orders", c => c.Orders); Order = context.MapAreaRoute <ProductsController, Guid>("employers/products/order/{id}", c => c.Order); }
public static void RegisterRoutes(AreaRegistrationContext context) { Join = context.MapAreaRoute <JoinController, Guid?, LoginReason?>("join", c => c.Join); PersonalDetails = context.MapAreaRoute <JoinController>("join/personaldetails", c => c.PersonalDetails); JobDetails = context.MapAreaRoute <JoinController>("join/jobdetails", c => c.JobDetails); Activate = context.MapAreaRoute <JoinController>("join/activate", c => c.Activate); ApiJoin = context.MapAreaRoute <JoinApiController, MemberJoin, bool>("join/api", c => c.Join); // Old urls. context.MapRedirectRoute("ui/unregistered/NewNetworkerUserProfileForm.aspx", Join); context.MapRedirectRoute("Join.aspx", Join); context.MapRedirectRoute("ui/NewNetworkerUserProfileForm.aspx", Join); context.MapRedirectRoute("join/default.aspx", Join); context.MapRedirectRoute("ui/unregistered/newnetworkerjoinform.aspx", Join); context.MapRedirectRoute("ui/unregistered/networkerjoinform.aspx", Join); context.MapRedirectRoute("ui/unregistered/QuickJoin.aspx", Join); context.MapRedirectRoute("ui/unregistered/JoinForm.aspx", Join); }
public static void RegisterRoutes(AreaRegistrationContext context) { AboutUs = context.MapAreaRoute <SupportController>("aboutus", c => c.AboutUs); Careers = context.MapAreaRoute <SupportController>("careers", c => c.Careers); ContactUs = context.MapAreaRoute <SupportController>("contactus", c => c.ContactUs); ContactUsPartial = context.MapAreaRoute <SupportController>("contactus/partial", c => c.ContactUsPartial); ApiSendContactUs = context.MapAreaRoute <SupportApiController, EmailUsModel>("api/contactus/send", c => c.SendContactUs); Privacy = context.MapAreaRoute <SupportController>("privacy", c => c.Privacy); Terms = context.MapAreaRoute <SupportController>("terms", c => c.Terms); MemberTerms = context.MapAreaRoute <SupportController>("members/terms", c => c.MemberTerms); EmployerTerms = context.MapAreaRoute <SupportController>("employers/terms", c => c.EmployerTerms); PrivacyDetail = context.MapAreaRoute <SupportController>("privacydetail", c => c.PrivacyDetail); TermsDetail = context.MapAreaRoute <SupportController>("termsdetail", c => c.TermsDetail); MemberTermsDetail = context.MapAreaRoute <SupportController>("members/termsdetail", c => c.MemberTermsDetail); EmployerTermsDetail = context.MapAreaRoute <SupportController>("employers/termsdetail", c => c.EmployerTermsDetail); SwitchBrowser = context.MapAreaRoute <BrowserSwitcherController, bool, string>("browser/switch", c => c.SwitchBrowser); // Old urls. context.MapRedirectRoute("AboutUs.aspx", AboutUs); context.MapRedirectRoute("ui/unregistered/common/AboutUs.aspx", AboutUs); context.MapRedirectRoute("CareersAtLinkMe.aspx", Careers); context.MapRedirectRoute("ui/unregistered/common/CareersAtLinkMe.aspx", Careers); context.MapRedirectRoute("PrivacyStatement.aspx", Privacy); context.MapRedirectRoute("ui/unregistered/common/PrivacyStatement.aspx", Privacy); context.MapRedirectRoute("ui/unregistered/common/privacystatementform.aspx", Privacy); context.MapRedirectRoute("TermsAndConditions.aspx", Terms); context.MapRedirectRoute("ui/unregistered/common/TermsAndConditions.aspx", Terms); context.MapRedirectRoute("ui/unregistered/common/termsandconditionsform.aspx", Terms); context.MapRedirectRoute("TermsAndConditionsDetail.aspx", TermsDetail); context.MapRedirectRoute("ui/unregistered/common/ContactUsForm.aspx", ContactUs); context.MapRedirectRoute("Partners.aspx", HomeRoutes.Home); context.MapRedirectRoute("ui/unregistered/common/Partners.aspx", HomeRoutes.Home); context.MapRedirectRoute("Affiliates.aspx", HomeRoutes.Home); context.MapRedirectRoute("ui/unregistered/common/Affiliates.aspx", HomeRoutes.Home); context.MapRedirectRoute("media/{*catchall}", HomeRoutes.Home); context.MapRedirectRoute("featured/{*catchall}", HomeRoutes.Home); context.MapRedirectRoute("marketing/{*catchall}", HomeRoutes.Home); context.MapRedirectRoute("ui/registered/networkers/assessmeform.aspx", HomeRoutes.Home); context.MapRedirectRoute("ui/registered/Home.aspx", HomeRoutes.Home); context.MapRedirectRoute("guests/Messages.aspx", HomeRoutes.Home); context.MapRedirectRoute("guests/ReferEmployer.aspx", HomeRoutes.Home); context.MapRedirectRoute("ui/FileNotFoundError.aspx", HomeRoutes.Home); context.MapRedirectRoute("ui/ServerError.aspx", HomeRoutes.Home); // Tiny urls. context.MapAreaRoute <TinyUrlsController, Guid>("url/{id}.aspx", c => c.Track); context.MapAreaRoute <TinyUrlsController, Guid>("url/{id}", c => c.TinyUrl); }
public static void RegisterRoutes(AreaRegistrationContext context) { Search = context.MapAreaRoute <SearchController, JobAdSearchCriteria, JobAdsPresentationModel>("search/jobs", c => c.Search); PartialSearch = context.MapAreaRoute <SearchController, JobAdSearchCriteria, JobAdsPresentationModel>("search/jobs/partial", c => c.PartialSearch); ApiSearch = context.MapAreaRoute <SearchApiController, JobAdSearchCriteria, JobAdsPresentationModel>("search/jobs/api", c => c.Search); LeftSide = context.MapAreaRoute <SearchController>("search/jobs/leftside", c => c.LeftSide); Results = context.MapAreaRoute <SearchController>("search/jobs/results", c => c.Results); context.MapAreaRoute <SearchesWebController, Guid>("members/searches/{searchId}/delete", c => c.DeleteSearch); Searches = context.MapAreaRoute <SearchesMobileController>("members/searches", c => c.Searches); context.MapAreaRoute <SearchesMobileController>("members/searches/recent", c => c.RecentSearches); RecentSearches = context.MapAreaRoute <SearchesWebController>("members/searches/recent", c => c.RecentSearches); PartialRecentSearches = context.MapAreaRoute <SearchesWebController, Pagination>("members/searches/partial/recent", c => c.PartialRecentSearches); context.MapAreaRoute <SearchesMobileController>("members/searches/saved", c => c.SavedSearches); SavedSearches = context.MapAreaRoute <SearchesWebController>("members/searches/saved", c => c.SavedSearches); PartialSavedSearches = context.MapAreaRoute <SearchesWebController, Pagination>("members/searches/partial/saved", c => c.PartialSavedSearches); context.MapRedirectRoute("members/searches", RecentSearches); ApiSaveSearch = context.MapAreaRoute <SearchesApiController, ContactDetailsModel>("members/searches/api/save", c => c.SaveSearch); ApiDeleteSearch = context.MapAreaRoute <SearchesApiController, Guid>("members/searches/api/delete", c => c.DeleteSearch); ApiDeleteSearchAlert = context.MapAreaRoute <SearchesApiController, Guid>("members/alerts/api/delete", c => c.DeleteSearchAlert); ApiCreateSearchFromCurrent = context.MapAreaRoute <SearchesApiController, string, bool>("members/searches/api/createFromCurrent", c => c.CreateSearchFromCurrentSearch); ApiCreateAlertFromSearch = context.MapAreaRoute <SearchesApiController, Guid>("members/alerts/api/createFromSaved", c => c.CreateAlertFromSavedSearch); ApiCreateAlertFromPrevious = context.MapAreaRoute <SearchesApiController, Guid>("members/alerts/api/createFromPrevious", c => c.CreateAlertFromPreviousSearch); ApiRenameSearch = context.MapAreaRoute <SearchesApiController, Guid, string>("members/searches/api/rename", c => c.RenameSearch); RecentSearch = context.MapAreaRoute <SearchController, Guid>("search/jobs/recent/{recentSearchId}", c => c.Recent); SavedSearch = context.MapAreaRoute <SearchController, Guid>("search/jobs/saved/{savedSearchId}", c => c.Saved); SaveSearch = context.MapAreaRoute <SearchMobileController>("members/searches/save", c => c.SaveSearch); context.MapRedirectRoute("ui/registered/networkers/PreviousJobSearches.aspx", RecentSearches); context.MapRedirectRoute("ui/registered/networkers/JobSearchEmailAlerts.aspx", SavedSearches); context.MapRedirectRoute("search/jobs/tips", Search); context.MapRedirectRoute("search/jobs/Tips.aspx", Search); context.MapRedirectRoute("search/jobs/advanced", Search); context.MapRedirectRoute("search/jobs/advancedsearch.aspx", Search); context.MapRedirectRoute("search/jobs/SimpleSearch.aspx", Search); context.MapRedirectRoute("ui/unregistered/JobSearchForm.aspx", Search); context.MapRedirectRoute("ui/unregistered/JobSearchAdvancedForm.aspx", Search); context.MapRedirectRoute("guests/JobPreviousSearches.aspx", Search); }
public static Route MapRedirectRoute(this AreaRegistrationContext context, string routeUrl, RouteReference redirectRoute, params IRouteConstraint[] constraints) { return(context.MapRedirectRoute(routeUrl, redirectRoute, null, constraints)); }
public static void RegisterRoutes(AreaRegistrationContext context) { Home = context.MapAreaRoute <HomeMobileController>("members/home", c => c.Home); context.MapRedirectRoute("members/home", ProfilesRoutes.Profile); context.MapRedirectRoute("ui/registered/networkers/NetworkerHome.aspx", ProfilesRoutes.Profile); }
public static void RegisterRoutes(AreaRegistrationContext context) { // These are all old job ad urls that need to map to the job ad page. OldJobAd = context.MapAreaRoute <BrowseJobAdsController, Guid?>("jobs/{jobAdId}", c => c.OldJobAdId); context.MapAreaRoute <BrowseJobAdsController, Guid?>(false, "jobads/{jobAdId}", c => c.OldJobAdId); context.MapAreaRoute <BrowseJobAdsController, Guid?>(false, "jobads/{jobAdId}/apply", c => c.OldJobAdId); context.MapAreaRoute <BrowseJobAdsController, Guid?>(false, "jobs/Job.aspx", c => c.OldJobAdId); context.MapAreaRoute <BrowseJobAdsController, Guid?>(false, "ui/unregistered/common/JobApplicationSignInForm.aspx", c => c.OldJobAdId); context.MapAreaRoute <BrowseJobAdsController, Guid?>(false, "ui/unregistered/ViewJobAdForm.aspx", c => c.OldJobAdId); JobAd = context.MapAreaRoute <JobAdsWebController, Guid>("jobs/{locationSegment}/{industrySegment}/{titleSegment}/{jobAdId}", c => c.JobAd); BrowseJobAds = context.MapAreaRoute <BrowseJobAdsController>("jobs", c => c.JobAds); IndustryJobAds = context.MapAreaRoute <BrowseJobAdsController, string>("jobs/-/{industrySegment}", c => c.IndustryJobAds); LocationJobAds = context.MapAreaRoute <BrowseJobAdsController, string>("jobs/{locationSegment}", c => c.LocationJobAds); Download = context.MapAreaRoute <JobAdFilesController, JobAdMimeType?, Guid[]>("members/jobs/download", c => c.Download); Logo = context.MapAreaRoute <JobAdFilesController, Guid>("members/jobs/{jobAdId}/logo", c => c.Logo); LocationIndustryJobAds = context.MapAreaRoute <SearchController, string, string>("jobs/{locationSegment}/{industrySegment}", c => c.LocationIndustryJobAds); PagedLocationIndustryJobAds = context.MapAreaRoute <SearchController, string, string, int?>("jobs/{locationSegment}/{industrySegment}/{page}", c => c.PagedLocationIndustryJobAds); Jobs = context.MapAreaRoute <JobAdsMobileController>("members/jobs", c => c.Jobs); context.MapRedirectRoute("members/jobs", SearchRoutes.Search); JobAdQuestions = context.MapAreaRoute <JobAdsWebController, Guid, Guid>("members/jobs/{jobAdId}/questions", c => c.JobAdQuestions); JobAdApplied = context.MapAreaRoute <JobAdsWebController, Guid>("members/jobs/{jobAdId}/applied", c => c.JobAdApplied); ApiEmailJobAds = context.MapAreaRoute <JobAdsApiController, EmailJobAdsModel>("members/jobs/api/email", c => c.EmailJobAds); EmailJobAd = context.MapAreaRoute <JobAdsMobileController, Guid>("members/jobs/{jobAdId}/email", c => c.Email); context.MapRedirectRoute("members/jobs/{jobAdId}/email", OldJobAd, new { jobAdId = new RedirectRouteValue() }); EmailJobAdSent = context.MapAreaRoute <JobAdsMobileController, Guid>("members/jobs/{jobAdId}/emailsent", c => c.EmailSent); context.MapRedirectRoute("members/jobs/{jobAdId}/emailsent", OldJobAd, new { jobAdId = new RedirectRouteValue() }); LoggedInUserApplyArea = context.MapAreaRoute <JobAdsWebController, Guid>("members/jobs/{jobAdId}/loggedinuserapplyarea", c => c.LoggedInUserApplyArea); RedirectToExternal = context.MapAreaRoute <JobAdsWebController, Guid, Guid?>("members/jobs/{jobAdId}/redirecttoexternal", c => c.RedirectToExternal); ApiApplyWithLastUsedResume = context.MapAreaRoute <ApplicationsApiController, Guid, string>("members/jobs/api/{jobAdId}/applywithlastusedresume", c => c.ApplyWithLastUsedResume); ApiApplyWithUploadedResume = context.MapAreaRoute <ApplicationsApiController, Guid, Guid, bool, string>("members/jobs/api/{jobAdId}/applywithuploadedresume", c => c.ApplyWithUploadedResume); ApiApplyWithProfile = context.MapAreaRoute <ApplicationsApiController, Guid, string>("members/jobs/api/{jobAdId}/applywithprofile", c => c.ApplyWithProfile); ApiApply = context.MapAreaRoute <ApplicationsApiController, Guid, Guid, ContactDetailsModel>("members/jobs/api/{jobAdId}/apply", c => c.Apply); JobAdApply = context.MapAreaRoute <JobAdsMobileController, Guid>("members/jobs/{jobAdId}/apply", c => c.Apply); context.MapRedirectRoute("members/jobs/{jobAdId}/apply", OldJobAd, new { jobAdId = new RedirectRouteValue() }); // Applications. Applications = context.MapAreaRoute <ApplicationsMobileController>("members/jobs/applications", c => c.Applications); context.MapRedirectUrl("members/jobs/applications", "ui/registered/networkers/previousapplications.aspx"); // Similar. Similar = context.MapAreaRoute <SimilarJobsController, Guid, JobAdsPresentationModel>("members/jobs/similar/{jobAdId}", c => c.SimilarJobs); SimilarPartial = context.MapAreaRoute <SimilarJobsController, Guid, JobAdsPresentationModel>("members/jobs/similar/{jobAdId}/partial", c => c.SimilarJobsPartial); // Suggested. context.MapAreaRoute <SuggestedJobsMobileController>("members/jobs/suggested", c => c.SuggestedJobs); Suggested = context.MapAreaRoute <SuggestedJobsController, JobAdsPresentationModel>("members/jobs/suggested", c => c.SuggestedJobs); SuggestedPartial = context.MapAreaRoute <SuggestedJobsController, JobAdsPresentationModel>("members/jobs/suggested/partial", c => c.SuggestedJobsPartial); // Folders. Folder = context.MapAreaRoute <FoldersWebController, Guid, JobAdSearchSortCriteria, JobAdsPresentationModel>("members/jobs/folders/{folderId}", c => c.Folder); PartialFolder = context.MapAreaRoute <FoldersWebController, Guid, JobAdSearchSortCriteria, JobAdsPresentationModel>("members/jobs/folders/{folderId}/partial", c => c.PartialFolder); MobileFolder = context.MapAreaRoute <FoldersMobileController, JobAdSearchSortCriteria, JobAdsPresentationModel>("members/jobs/folders/mobile", c => c.MobileFolder); PartialMobileFolder = context.MapAreaRoute <FoldersMobileController, JobAdSearchSortCriteria, JobAdsPresentationModel>("members/jobs/folders/mobile/partial", c => c.PartialMobileFolder); context.MapRedirectRoute("members/jobs/folders/mobile", SearchRoutes.Search); // Folders API. ApiAddJobAdsToFolder = context.MapAreaRoute <FoldersApiController, Guid, Guid[]>("members/jobs/folders/api/{folderId}/addjobs", c => c.AddJobAds); ApiAddJobAdsToMobileFolder = context.MapAreaRoute <FoldersApiController, Guid[]>("members/jobs/folders/api/mobile/addjobs", c => c.AddMobileJobAds); ApiRemoveJobAdsFromFolder = context.MapAreaRoute <FoldersApiController, Guid, Guid[]>("members/jobs/folders/api/{folderId}/removejobs", c => c.RemoveJobAds); ApiRemoveJobAdsFromMobileFolder = context.MapAreaRoute <FoldersApiController, Guid[]>("members/jobs/folders/api/mobile/removejobs", c => c.RemoveMobileJobAds); ApiEmptyFolder = context.MapAreaRoute <FoldersApiController, Guid>("members/jobs/folders/api/{folderId}/removealljobs", c => c.RemoveAllJobAds); ApiRenameFolder = context.MapAreaRoute <FoldersApiController, Guid, string>("members/jobs/folders/api/{folderId}/rename", c => c.RenameFolder); AddJobAdToMobileFolder = context.MapAreaRoute <FoldersMobileController, Guid[]>("members/jobs/folders/mobile/addjob", c => c.AddJobAdToMobileFolder); // FlagLists. FlagList = context.MapAreaRoute <FlagListsController, JobAdSearchSortCriteria, JobAdsPresentationModel>("members/jobs/flaglist", c => c.FlagList); PartialFlagList = context.MapAreaRoute <FlagListsController, JobAdSearchSortCriteria, JobAdsPresentationModel>("members/jobs/flaglist/partial", c => c.PartialFlagList); // FlagLists API. ApiFlagJobAds = context.MapAreaRoute <FlagListsApiController, Guid[]>("members/jobs/flaglists/api/addjobads", c => c.AddJobAds); ApiUnflagJobAds = context.MapAreaRoute <FlagListsApiController, Guid[]>("members/jobs/flaglists/api/removejobads", c => c.RemoveJobAds); ApiUnflagAllJobAds = context.MapAreaRoute <FlagListsApiController>("members/jobs/flaglists/api/removealljobads", c => c.RemoveAllJobAds); ApiUnflagCurrentJobAds = context.MapAreaRoute <FlagListsApiController>("members/jobs/flaglists/api/removecurrentjobads", c => c.RemoveCurrentJobAds); // BlockLists. BlockList = context.MapAreaRoute <BlockListsController, JobAdSearchSortCriteria, JobAdsPresentationModel>("members/jobs/blocklist", c => c.BlockList); PartialBlockList = context.MapAreaRoute <BlockListsController, JobAdSearchSortCriteria, JobAdsPresentationModel>("members/jobs/blocklist/partial", c => c.PartialBlockList); // BlockLists API. ApiBlockJobAds = context.MapAreaRoute <BlockListsApiController, Guid[]>("members/jobs/blocklists/api/blockJobAds", c => c.BlockJobAds); ApiUnblockJobAds = context.MapAreaRoute <BlockListsApiController, Guid[]>("members/jobs/blocklists/api/unblockJobAds", c => c.UnblockJobAds); ApiUnblockAllJobAds = context.MapAreaRoute <BlockListsApiController>("members/jobs/blocklists/api/unblockallJobAds", c => c.UnblockAllJobAds); // Notes API. ApiNotes = context.MapAreaRoute <NotesApiController, Guid>("members/jobs/notes/api", c => c.Notes); ApiNewNote = context.MapAreaRoute <NotesApiController, Guid[], string>("members/jobs/notes/api/new", c => c.NewNote); ApiEditNote = context.MapAreaRoute <NotesApiController, Guid, string>("members/jobs/notes/api/{noteId}/edit", c => c.EditNote); ApiDeleteNote = context.MapAreaRoute <NotesApiController, Guid>("members/jobs/notes/api/{noteId}/delete", c => c.DeleteNote); context.MapAreaRoute <NotesApiController, Guid>("members/jobs/notes/api/{noteId}", c => c.Note); // Only allow POSTs to these urls. ApiExternallyApplied = context.MapAreaRoute <JobAdsApiController, Guid>("members/jobs/api/{jobAdId}/externallyapplied", c => c.ExternallyApplied, new HttpMethodConstraint("POST")); context.MapJsonNotFoundRoute("members/jobs/api/{jobAdId}/externallyapplied"); context.MapJsonNotFoundRoute("members/jobs/api/externallyapplied"); ApiViewed = context.MapAreaRoute <JobAdsApiController, Guid>("members/jobs/api/{jobAdId}/viewed", c => c.Viewed, new HttpMethodConstraint("POST")); context.MapJsonNotFoundRoute("members/jobs/api/{jobAdId}/viewed"); // Catch all old job ad url that needs to map to the job ad page. context.MapAreaRoute <BrowseJobAdsController, string>(false, "jobs/{locationSegment}/{industrySegment}/{jobAdId}", c => c.OldJobAd); context.MapRedirectRoute("ui/unregistered/SimilarJobs.aspx", Similar, new { jobAdId = new RedirectQueryString() }); context.MapRedirectRoute("ui/unregistered/SimilarJobs.aspx", BrowseJobAds); context.MapRedirectRoute("ui/registered/networkers/SuggestedJobs.aspx", Suggested); context.MapRedirectRoute("ui/unregistered/SendJobToFriendPopupContents.aspx", BrowseJobAds); }
public static void RegisterRoutes(AreaRegistrationContext context) { Home = context.MapAreaRoute <HomeController>("custodians/home", c => c.Home); context.MapRedirectRoute("communities/administrators/home.aspx", Home); }
public static void RegisterRoutes(AreaRegistrationContext context) { Resources = context.MapAreaRoute <ResourcesController>("members/resources", c => c.Resources); PartialCurrent = context.MapAreaRoute <ResourcesController>("members/resources/current/partial", c => c.PartialCurrent); Articles = context.MapAreaRoute <ResourcesController, ResourceSearchCriteria, ResourcesPresentationModel>("members/resources/articles", c => c.Articles); Videos = context.MapAreaRoute <ResourcesController, ResourceSearchCriteria, ResourcesPresentationModel>("members/resources/videos", c => c.Videos); QnAs = context.MapAreaRoute <ResourcesController, ResourceSearchCriteria, ResourcesPresentationModel>("members/resources/qnas", c => c.QnAs); PartialArticles = context.MapAreaRoute <ResourcesController, ResourceSearchCriteria, ResourcesPresentationModel>("members/resources/articles/partial", c => c.PartialArticles); PartialVideos = context.MapAreaRoute <ResourcesController, ResourceSearchCriteria, ResourcesPresentationModel>("members/resources/videos/partial", c => c.PartialVideos); PartialQnAs = context.MapAreaRoute <ResourcesController, ResourceSearchCriteria, ResourcesPresentationModel>("members/resources/qnas/partial", c => c.PartialQnAs); context.MapRedirectRoute("members/resources/articles/all", Articles); context.MapRedirectRoute("members/resources/videos/all", Videos); context.MapRedirectRoute("members/resources/answeredquestions/all", QnAs); RecentArticles = context.MapAreaRoute <ResourcesController>("members/resources/articles/recent", c => c.RecentArticles); RecentVideos = context.MapAreaRoute <ResourcesController>("members/resources/videos/recent", c => c.RecentVideos); RecentQnAs = context.MapAreaRoute <ResourcesController>("members/resources/qnas/recent", c => c.RecentQnAs); PartialRecentArticles = context.MapAreaRoute <ResourcesController, ResourcesPresentationModel>("members/resources/articles/recent/partial", c => c.PartialRecentArticles); PartialRecentVideos = context.MapAreaRoute <ResourcesController, ResourcesPresentationModel>("members/resources/videos/recent/partial", c => c.PartialRecentVideos); PartialRecentQnAs = context.MapAreaRoute <ResourcesController, ResourcesPresentationModel>("members/resources/qnas/recent/partial", c => c.PartialRecentQnAs); context.MapRedirectRoute("members/resources/recentlyviewed/article", RecentArticles); context.MapRedirectRoute("members/resources/recentlyviewed/video", RecentVideos); context.MapRedirectRoute("members/resources/recentlyviewed/answeredquestion", RecentQnAs); CategoryArticles = context.MapAreaRoute <ResourcesController, ResourceSearchCriteria, ResourcesPresentationModel>("members/resources/articles/{category}", c => c.CategoryArticles); CategoryVideos = context.MapAreaRoute <ResourcesController, ResourceSearchCriteria, ResourcesPresentationModel>("members/resources/videos/{category}", c => c.CategoryVideos); CategoryQnAs = context.MapAreaRoute <ResourcesController, ResourceSearchCriteria, ResourcesPresentationModel>("members/resources/qnas/{category}", c => c.CategoryQnAs); context.MapRedirectRoute("members/resources/answeredquestions/{category}", CategoryQnAs, new { category = new RedirectRouteValue(), categoryId = new RedirectQueryString(false) }); context.MapRedirectRoute("members/resources/answeredquestions/{category}", CategoryQnAs, new { category = new RedirectRouteValue(), subcategoryId = new RedirectQueryString(false) }); Search = context.MapAreaRoute <ResourcesController, ResourceSearchCriteria>("members/resources/search", c => c.Search); Article = context.MapAreaRoute <ResourcesController, Guid>("members/resources/articles/{category}/{id}", c => c.Article); Video = context.MapAreaRoute <ResourcesController, Guid>("members/resources/videos/{category}/{id}", c => c.Video); QnA = context.MapAreaRoute <ResourcesController, Guid>("members/resources/qnas/{category}/{id}", c => c.QnA); context.MapRedirectRoute("members/resources/article/{category}/{id}", Article, new { category = new RedirectRouteValue(), id = new RedirectRouteValue() }); context.MapRedirectRoute("members/resources/video/{category}/{id}", Video, new { category = new RedirectRouteValue(), id = new RedirectRouteValue() }); context.MapRedirectRoute("members/resources/answeredquestion/{category}/{id}", QnA, new { category = new RedirectRouteValue(), id = new RedirectRouteValue() }); PartialArticle = context.MapAreaRoute <ResourcesController, Guid>("members/resources/articles/{id}/partial", c => c.PartialArticle); PartialVideo = context.MapAreaRoute <ResourcesController, Guid>("members/resources/videos/{id}/partial", c => c.PartialVideo); PartialQnA = context.MapAreaRoute <ResourcesController, Guid>("members/resources/qnas/{id}/partial", c => c.PartialQnA); ApiRateArticle = context.MapAreaRoute <ResourcesApiController, Guid, byte>("members/resources/articles/api/rate/{id}", c => c.RateArticle); ApiViewArticle = context.MapAreaRoute <ResourcesApiController, Guid>("members/resources/articles/api/view/{id}", c => c.ViewArticle); ApiViewVideo = context.MapAreaRoute <ResourcesApiController, Guid>("members/resources/videos/api/view/{id}", c => c.ViewVideo); ApiViewQnA = context.MapAreaRoute <ResourcesApiController, Guid>("members/resources/qnas/api/view/{id}", c => c.ViewAnsweredQuestion); ApiVote = context.MapAreaRoute <ResourcesApiController, byte>("members/resources/api/vote/{name}/{voteId}", c => c.Vote); ApiAskQuestion = context.MapAreaRoute <ResourcesApiController, Guid?, string>("members/resources/api/askquestion", c => c.AskQuestion); ApiVideo = context.MapAreaRoute <ResourcesApiController, string>("members/resources/api/videodetail", c => c.YouTubeVideoDetail); // Old urls. context.MapRedirectRoute("members/resources/current", Resources); context.MapRedirectRoute("ui/unregistered/ResumeStyleGuide.aspx", Resources); context.MapRedirectRoute("ui/unregistered/ResumeTips.aspx", Resources); context.MapRedirectRoute("ui/unregistered/video/Videos.aspx", Resources); context.MapRedirectRoute("career/{*catchall}", Resources); context.MapRedirectRoute("videos/{*catchall}", Resources); }
public static void RegisterRoutes(AreaRegistrationContext context) { Settings = context.MapAreaRoute <SettingsController>("employers/settings", c => c.Settings); context.MapRedirectRoute("ui/registered/employers/EmployerEditUserProfileForm.aspx", Settings); }