public static void RegisterRoutes(AreaRegistrationContext context) { PartialMatches = context.MapAreaRoute <LocationApiController, int?, string, int?>("api/location/partialmatches", c => c.FindPartialMatchedLocations); PartialPostalMatches = context.MapAreaRoute <LocationApiController, int?, string, int?>("api/location/partialpostalmatches", c => c.FindPartialMatchedPostalSuburbs); ResolveLocation = context.MapAreaRoute <LocationApiController, int?, string>("api/location/resolve", c => c.ResolveLocation); ClosestLocation = context.MapAreaRoute <LocationApiController, int?, float, float>("api/location/closest", c => c.ClosestLocation); }
public RouteLinkField(HtmlHelper helper, string linkText, RouteReference route, object routeValues) : base(helper) { _linkText = linkText; _route = route; _routeValues = routeValues; }
public static void RegisterRoutes(AreaRegistrationContext context) { Search = context.MapAreaRoute <MaintainMembersController>("administrators/members/search", c => c.Search); Edit = context.MapAreaRoute <MaintainMembersController, Guid>("administrators/members/{id}", c => c.Edit); Enable = context.MapAreaRoute <MaintainMembersController, Guid>("administrators/members/{id}/enable", c => c.Enable); ChangePassword = context.MapAreaRoute <MaintainMembersController, Guid, MemberLoginModel, CheckBoxValue>("administrators/members/{id}/changepassword", c => c.ChangePassword); }
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) { 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) { 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) { Index = context.MapAreaRoute <MaintainAdministratorsController>("administrators/administrators", c => c.Index); New = context.MapAreaRoute <MaintainAdministratorsController>("administrators/administrators/new", c => c.New); Edit = context.MapAreaRoute <MaintainAdministratorsController, Guid>("administrators/administrators/{id}", c => c.Edit); Enable = context.MapAreaRoute <MaintainAdministratorsController, Guid>("administrators/administrators/{id}/enable", c => c.Enable); ChangePassword = context.MapAreaRoute <MaintainAdministratorsController, Guid, AdministratorLoginModel>("administrators/administrators/{id}/changepassword", c => c.ChangePassword); }
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) { 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) { context.MapAreaRoute <JobAdsController, string, string, string>("jobads", c => c.JobAds); context.MapAreaRoute <JobAdsController>("jobads/close", c => c.CloseJobAds); context.MapAreaRoute <JobAdsController>("jobadids", c => c.JobAdIds); context.MapAreaRoute <JobAdApplicationsController>("jobapplications/status", c => c.SetApplicationStatuses); Application = context.MapAreaRoute <JobAdApplicationsController, Guid>("jobapplication/{applicationId}", c => c.Application); Resume = context.MapAreaRoute <JobAdFilesController, Guid>("resume/{candidateId}/file/rtf", c => c.Resume); ResumeFile = context.MapAreaRoute <JobAdFilesController, Guid>("file/{fileId}", c => c.ResumeFile); ResumeFileName = context.MapAreaRoute <JobAdFilesController, Guid>("file/{fileId}/{fileName}", c => c.ResumeFileName); }
protected ActionResult RedirectToRouteWithConfirmation(RouteReference route, object routeValues, string message) { var id = Session.SetNotification(NotificationType.Confirmation, message); // Add in the notification id. var dictionary = new RouteValueDictionary(routeValues) { { NotificationsExtensions.NotificationIdParameter, id.ToString("n") } }; return(RedirectToRoute(route, dictionary)); }
public static void RegisterRoutes(AreaRegistrationContext context) { Search = context.MapAreaRoute <MaintainEmployersController>("administrators/employers/search", c => c.Search); Edit = context.MapAreaRoute <MaintainEmployersController, Guid>("administrators/employers/{id}", c => c.Edit); Enable = context.MapAreaRoute <MaintainEmployersController, Guid>("administrators/employers/{id}/enable", c => c.Enable); ChangePassword = context.MapAreaRoute <MaintainEmployersController, Guid, EmployerLoginModel, CheckBoxValue>("administrators/employers/{id}/changepassword", c => c.ChangePassword); Credits = context.MapAreaRoute <EmployerCreditsController, Guid>("administrators/employers/{id}/credits", c => c.Index); Usage = context.MapAreaRoute <EmployerCreditsController, Guid, DateTime?, DateTime?>("administrators/employers/{id}/credits/usage", c => c.Usage); AllocationUsage = context.MapAreaRoute <EmployerCreditsController, Guid, Guid>("administrators/employers/{id}/allocations/{allocationId}/usage", c => c.AllocationUsage); ApiDeallocate = context.MapAreaRoute <EmployerCreditsApiController, Guid, Guid>("administrators/employers/{id}/allocations/deallocate", c => c.Deallocate); }
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 void RegisterRoutes(AreaRegistrationContext context) { Index = context.MapAreaRoute <CampaignsController>("administrators/communications/campaigns", c => c.Index); PagedIndex = context.MapAreaRoute <CampaignsController, int>("administrators/communications/campaigns/{page}", c => c.PagedIndex); New = context.MapAreaRoute <CampaignsController>("administrators/communications/campaigns/campaign/new", c => c.New); CategoryIndex = context.MapAreaRoute <CampaignsController, CampaignCategory>("administrators/communications/campaigns/{category}", c => c.CategoryIndex); PagedCategoryIndex = context.MapAreaRoute <CampaignsController, CampaignCategory, int>("administrators/communications/campaigns/{category}/{page}", c => c.PagedCategoryIndex); Edit = context.MapAreaRoute <CampaignsController, Guid>("administrators/communications/campaigns/campaign/{id}", c => c.Edit); Delete = context.MapAreaRoute <CampaignsController, Guid, int?>("administrators/communications/campaigns/campaign/{id}/delete", c => c.Delete); Activate = context.MapAreaRoute <CampaignsController, Guid>("administrators/communications/campaigns/campaign/{id}/activate", c => c.Activate); Stop = context.MapAreaRoute <CampaignsController, Guid>("administrators/communications/campaigns/campaign/{id}/stop", c => c.Stop); EditCriteria = context.MapAreaRoute <CampaignsController, Guid>("administrators/communications/campaigns/campaign/{id}/criteria", c => c.EditCriteria); EditTemplate = context.MapAreaRoute <CampaignsController, Guid>("administrators/communications/campaigns/campaign/{id}/template", c => c.EditTemplate); Search = context.MapAreaRoute <CampaignsController, Guid>("administrators/communications/campaigns/campaign/{id}/search", c => c.Search); Send = context.MapAreaRoute <CampaignsController, Guid, string, string>("administrators/communications/campaigns/campaign/{id}/send", c => c.Send); Preview = context.MapAreaRoute <CampaignsController, Guid>("administrators/communications/campaigns/campaign/{id}/preview", c => c.Preview); Report = context.MapAreaRoute <CampaignsController, Guid>("administrators/communications/campaigns/campaign/{id}/report", c => c.Report); }
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) { context.MapAreaRoute <VerticalsController>("verticals/reset", c => c.Reset); context.MapAreaRoute <VerticalsController, string>("{verticalUrl}/accounts/convert", c => c.Convert); Converted = context.MapAreaRoute <VerticalsController, string>("{verticalUrl}/accounts/converted", c => c.Converted); context.MapAreaRoute <VerticalsController, string, string>(false, "{verticalUrl}", c => c.Home); context.MapAreaRoute <VerticalsController, string, string>(false, "{verticalUrl}/join.aspx", c => c.Join); context.MapAreaRoute <VerticalsController, string, string>(false, "{verticalUrl}/login.aspx", c => c.LogIn); context.MapAreaRoute <VerticalsController, string, string>(false, "{verticalUrl}/employers/Employer.aspx", c => c.EmployerHome); context.MapAreaRoute <VerticalsController, string, string>(false, "{verticalUrl}/employers/Join.aspx", c => c.EmployerJoin); context.MapAreaRoute <VerticalsController, string, string>(false, "{verticalUrl}/employers/LogIn.aspx", c => c.EmployerLogin); context.MapAreaRoute <VerticalsController, string, string>(false, "{verticalUrl}/{verticalUrl2}", c => c.Home); context.MapAreaRoute <VerticalsController, string, string>(false, "{verticalUrl}/{verticalUrl2}/join.aspx", c => c.Join); context.MapAreaRoute <VerticalsController, string, string>(false, "{verticalUrl}/{verticalUrl2}/login.aspx", c => c.LogIn); context.MapAreaRoute <VerticalsController, string, string>(false, "{verticalUrl}/{verticalUrl2}/employers/Employer.aspx", c => c.EmployerHome); context.MapAreaRoute <VerticalsController, string, string>(false, "{verticalUrl}/{verticalUrl2}/employers/Join.aspx", c => c.EmployerJoin); context.MapAreaRoute <VerticalsController, string, string>(false, "{verticalUrl}/{verticalUrl2}/employers/LogIn.aspx", c => c.EmployerLogin); }
public static void RegisterRoutes(AreaRegistrationContext context) { Search = context.MapAreaRoute <OrganisationsController>("administrators/organisations/search", c => c.Search); New = context.MapAreaRoute <OrganisationsController>("administrators/organisations/organisation/new", c => c.New); Edit = context.MapAreaRoute <OrganisationsController, Guid>("administrators/organisations/{id}", c => c.Edit); Employers = context.MapAreaRoute <OrganisationsController, Guid, CheckBoxValue>("administrators/organisations/{id}/employers", c => c.Employers); NewEmployer = context.MapAreaRoute <OrganisationsController, Guid>("administrators/organisations/{id}/employers/new", c => c.NewEmployer); Communications = context.MapAreaRoute <OrganisationsController, Guid>("administrators/organisations/{id}/communications", c => c.Communications); Reports = context.MapAreaRoute <OrganisationReportsController, Guid>("administrators/organisations/{id}/reports", c => c.Index); Report = context.MapAreaRoute <OrganisationReportsController, Guid, string>("administrators/organisations/{id}/reports/{type}", c => c.Report); RunReport = context.MapAreaRoute <OrganisationReportsController, Guid, string, DateTime?, DateTime?>("administrators/organisations/{id}/reports/{type}/run", c => c.RunReport); Credits = context.MapAreaRoute <OrganisationCreditsController, Guid>("administrators/organisations/{id}/credits", c => c.Index); Usage = context.MapAreaRoute <OrganisationCreditsController, Guid, DateTime?, DateTime?>("administrators/organisations/{id}/credits/usage", c => c.Usage); AllocationUsage = context.MapAreaRoute <OrganisationCreditsController, Guid, Guid>("administrators/organisations/{id}/allocations/{allocationId}/usage", c => c.AllocationUsage); ApiDeallocate = context.MapAreaRoute <OrganisationsApiController, Guid, Guid>("administrators/organisations/{id}/allocations/deallocate", c => c.Deallocate); ApiPartialMatches = context.MapAreaRoute <OrganisationsApiController, string, int?>("administrators/organisations/api/location/partialmatches", c => c.FindPartialMatchedOrganisations); }
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 RawRoute GetRoute(RouteReference routeReference) { throw new NotImplementedException(); }