public static void RegisterRoutes(AreaRegistrationContext context) { Index = context.MapAreaRoute <CommunitiesController>("administrators/communities", c => c.Index); Edit = context.MapAreaRoute <CommunitiesController, Guid>("administrators/communities/{id}", c => c.Edit); Custodians = context.MapAreaRoute <CommunitiesController, Guid>("administrators/communities/{id}/custodians", c => c.Custodians); NewCustodian = context.MapAreaRoute <CommunitiesController, Guid>("administrators/communities/{id}/custodians/new", c => c.NewCustodian); }
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 static void RegisterRoutes(AreaRegistrationContext context) { context.MapAreaRoute <SearchApiController, MemberSearchCriteria, Pagination>(1, "search/candidates", c => c.Search); context.MapAreaRoute <SearchesApiController>(1, "employers/searches", c => c.Searches); context.MapAreaRoute <SearchesApiController, Guid, string, bool, MemberSearchCriteria, string>(1, "employers/searches/{id}", c => c.EditSearch); }
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) { 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) { 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) { 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) { context.MapAreaRoute <CandidatesApiController, Guid>(1, "employers/candidates/{candidateId}", c => c.Candidate); context.MapAreaRoute <CandidatesApiController, Guid>(1, "employers/candidates/{candidateId}/unlock", c => c.Unlock); context.MapAreaRoute <CandidatesApiController, Guid>(1, "employers/candidates/{candidateId}/phonenumbers", c => c.PhoneNumbers); context.MapAreaRoute <FoldersApiController, Pagination>(1, "employers/candidates/folders/mobile", c => c.MobileCandidates); context.MapAreaRoute <FoldersApiController, Guid>(1, "employers/candidates/folders/mobile/{candidateId}", c => c.MobileCandidate); }
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) { 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) { 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 <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); }
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 override void RegisterArea(AreaRegistrationContext context) { context.MapAreaRoute <CacheController>("communications/cache/clear", c => c.Clear); context.MapAreaRoute <MembersController, CommunicationsContext>("communications/definitions/membernewsletteremail", c => c.Newsletter); context.MapAreaRoute <MembersController, CommunicationsContext>("communications/definitions/reengagementemail", c => c.Reengagement); context.MapAreaRoute <MembersController, CommunicationsContext>("communications/definitions/edmemail", c => c.Edm); context.MapAreaRoute <MembersController, Guid>("communications/members/photo/{id}", c => c.Photo); context.MapAreaRoute <EmployersController, CommunicationsContext>("communications/definitions/employernewsletteremail", c => c.Newsletter); context.MapAreaRoute <EmployersController, CommunicationsContext>("communications/definitions/ioslaunchemail", c => c.IosLaunch); }
public static void RegisterRoutes(AreaRegistrationContext context) { context.MapAreaRoute <AccountsApiController, LoginModel>(1, "login", c => c.LogIn); context.MapAreaRoute <AccountsApiController>(1, "logout", c => c.LogOut); context.MapAreaRoute <AccountsApiController, ChangePasswordModel>(1, "accounts/changepassword", c => c.ChangePassword); context.MapAreaRoute <AccountsApiController, string>(1, "accounts/newpassword", c => c.NewPassword); context.MapAreaRoute <AccountsApiController, string>(1, "registerDevice", c => c.RegisterDevice); context.MapAreaRoute <AccountsApiController>(1, "unviewedSummary", c => c.UnviewedAlertedCandidates); }
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) { context.MapAreaRoute <CacheApiController>("api/cache/clear", c => c.Clear); }
public static RouteReference MapAreaRoute <TController, T1, T2, T3, T4, T5, T6>(this AreaRegistrationContext context, bool nameRoute, string routeUrl, Expression <Func <TController, ControllerFunc <T1, T2, T3, T4, T5, T6, ActionResult> > > action, params IRouteConstraint[] constraints) { return(context.MapAreaRoute <TController>(nameRoute, routeUrl, action, constraints)); }
public static RouteReference MapAreaRoute <TController, T1, T2, T3>(this AreaRegistrationContext context, string routeUrl, Expression <Func <TController, Func <T1, T2, T3, ActionResult> > > action, params IRouteConstraint[] constraints) { return(context.MapAreaRoute(true, routeUrl, action, constraints)); }
public static void RegisterRoutes(AreaRegistrationContext context) { Candidates = context.MapAreaRoute <CandidatesController, Guid?, Guid[], Guid?>("employers/candidates", c => c.Resumes); Candidate = context.MapAreaRoute <CandidatesController, Guid>("candidates/{locationSegment}/{salarySegment}/{titleSegment}/{candidateId}", c => c.Candidate); SalaryBandCandidates = context.MapAreaRoute <BrowseCandidatesController, string>("candidates/-/{salarySegment}", c => c.SalaryBandCandidates); LocationCandidates = context.MapAreaRoute <BrowseCandidatesController, string>("candidates/{locationSegment}", c => c.LocationCandidates); LocationSalaryBandCandidates = context.MapAreaRoute <SearchController, string, string>("candidates/{locationSegment}/{salarySegment}", c => c.LocationSalaryBandCandidates); PagedLocationSalaryBandCandidates = context.MapAreaRoute <SearchController, string, string, int?>("candidates/{locationSegment}/{salarySegment}/{page}", c => c.PagedLocationSalaryBandCandidates); BrowseCandidates = context.MapAreaRoute <BrowseCandidatesController>("candidates", c => c.Candidates); PartialCandidates = context.MapAreaRoute <CandidatesController, Guid>("employers/candidates/partial", c => c.PartialResume); context.MapAreaRoute <CandidatesController, Guid>("employers/candidates/details", c => c.ResumeDetail); Photo = context.MapAreaRoute <CandidateFilesController, Guid>("employers/candidates/photo", c => c.Photo); Download = context.MapAreaRoute <CandidateFilesController, ResumeMimeType?, Guid[]>("employers/candidates/download", c => c.Download); Credits = context.MapAreaRoute <CandidatesController>("employers/candidates/credits", c => c.Credits); ApiPhoneNumbers = context.MapAreaRoute <CandidatesApiController, Guid[]>("employers/candidates/api/phonenumbers", c => c.PhoneNumbers); ApiCheckCanSendMessages = context.MapAreaRoute <CandidatesApiController, Guid[]>("employers/candidates/api/checkcansendmessages", c => c.CheckCanSendMessages); ApiSendMessages = context.MapAreaRoute <CandidatesApiController, ContactMemberMessage, Guid[], Guid[]>("employers/candidates/api/sendmessages", c => c.SendMessages); ApiSendRejectionMessages = context.MapAreaRoute <CandidatesApiController, RejectionMemberMessage, Guid, Guid[]>("employers/candidates/api/sendrejectionmessages", c => c.SendRejections); ApiAttach = context.MapAreaRoute <CandidatesApiController, Guid[], HttpPostedFileBase>("employers/candidates/api/attach", c => c.Attach); ApiDetach = context.MapAreaRoute <CandidatesApiController, Guid>("employers/candidates/api/detach", c => c.Detach); ApiUnlock = context.MapAreaRoute <CandidatesApiController, Guid[]>("employers/candidates/api/unlock", c => c.Unlock); ApiDownloadResumes = context.MapAreaRoute <CandidatesApiController, Guid[]>("employers/candidates/api/downloadresumes", c => c.DownloadResumes); ApiSendResumes = context.MapAreaRoute <CandidatesApiController, ResumeMimeType?, Guid[]>("employers/candidates/api/sendresumes", c => c.SendResumes); // Folders API. ApiFolders = context.MapAreaRoute <FoldersApiController>("employers/candidates/folders/api", c => c.Folders); ApiNewFolder = context.MapAreaRoute <FoldersApiController, string, bool, Guid[]>("employers/candidates/folders/api/new", c => c.NewFolder); context.MapAreaRoute <FoldersApiController, Guid>("employers/candidates/folders/api/{folderId}/delete", c => c.DeleteFolder); context.MapAreaRoute <FoldersApiController, Guid, string>("employers/candidates/folders/api/{folderId}/rename", c => c.RenameFolder); ApiAddCandidatesToFolder = context.MapAreaRoute <FoldersApiController, Guid, Guid[]>("employers/candidates/folders/api/{folderId}/addcandidates", c => c.AddCandidates); context.MapAreaRoute <FoldersApiController, Guid, Guid[]>("employers/candidates/folders/api/{folderId}/removecandidates", c => c.RemoveCandidates); // Folders. Folder = context.MapAreaRoute <FoldersController, Guid, MemberSearchSortCriteria, CandidatesPresentationModel>("employers/candidates/folders/{folderId}", c => c.Folder); PartialFolder = context.MapAreaRoute <FoldersController, Guid, MemberSearchSortCriteria, CandidatesPresentationModel>("employers/candidates/folders/{folderId}/partial", c => c.PartialFolder); Folders = context.MapAreaRoute <FoldersController>("employers/candidates/folders", c => c.Folders); // FlagLists. FlagList = context.MapAreaRoute <FlagListsController, MemberSearchSortCriteria, CandidatesPresentationModel>("employers/candidates/flaglist", c => c.FlagList); PartialFlagList = context.MapAreaRoute <FlagListsController, MemberSearchSortCriteria, CandidatesPresentationModel>("employers/candidates/flaglist/partial", c => c.PartialFlagList); // FlagLists API. ApiFlagCandidates = context.MapAreaRoute <FlagListsApiController, Guid[]>("employers/candidates/flaglists/api/addcandidates", c => c.AddCandidates); ApiUnflagCandidates = context.MapAreaRoute <FlagListsApiController, Guid[]>("employers/candidates/flaglists/api/removecandidates", c => c.RemoveCandidates); ApiUnflagAllCandidates = context.MapAreaRoute <FlagListsApiController>("employers/candidates/flaglists/api/removeallcandidates", c => c.RemoveAllCandidates); ApiUnflagCurrentCandidates = context.MapAreaRoute <FlagListsApiController>("employers/candidates/flaglists/api/removecurrentcandidates", c => c.RemoveCurrentCandidates); // BlockLists API. ApiBlockLists = context.MapAreaRoute <BlockListsApiController>("employers/candidates/blocklists/api", c => c.BlockLists); ApiAddCandidatesToBlockList = context.MapAreaRoute <BlockListsApiController, Guid, Guid[]>("employers/candidates/blocklists/api/{blockListId}/addcandidates", c => c.AddCandidates); context.MapAreaRoute <BlockListsApiController, Guid, Guid[]>("employers/candidates/blocklists/api/{blockListId}/removecandidates", c => c.RemoveCandidates); ApiTemporarilyBlockCandidates = context.MapAreaRoute <BlockListsApiController, Guid[]>("employers/candidates/blocklists/api/blocktemporarycandidates", c => c.BlockTemporaryCandidates); ApiTemporarilyUnblockCandidates = context.MapAreaRoute <BlockListsApiController, Guid[]>("employers/candidates/blocklists/api/unblocktemporarycandidates", c => c.UnblockTemporaryCandidates); ApiTemporarilyUnblockAllCandidates = context.MapAreaRoute <BlockListsApiController>("employers/candidates/blocklists/api/unblockalltemporarycandidates", c => c.UnblockAllTemporaryCandidates); ApiPermanentlyBlockCandidates = context.MapAreaRoute <BlockListsApiController, Guid[]>("employers/candidates/blocklists/api/blockpermanentcandidates", c => c.BlockPermanentCandidates); ApiPermanentlyUnblockCandidates = context.MapAreaRoute <BlockListsApiController, Guid[]>("employers/candidates/blocklists/api/unblockpermanentcandidates", c => c.UnblockPermanentCandidates); ApiPermanentlyUnblockAllCandidates = context.MapAreaRoute <BlockListsApiController>("employers/candidates/blocklists/api/unblockallpermanentcandidates", c => c.UnblockAllPermanentCandidates); // BlockLists. TemporaryBlockList = context.MapAreaRoute <BlockListsController, MemberSearchSortCriteria, CandidatesPresentationModel>("employers/candidates/blocklists/temporary", c => c.TemporaryBlockList); PermanentBlockList = context.MapAreaRoute <BlockListsController, MemberSearchSortCriteria, CandidatesPresentationModel>("employers/candidates/blocklists/permanent", c => c.PermanentBlockList); TemporaryPartialBlockList = context.MapAreaRoute <BlockListsController, MemberSearchSortCriteria, CandidatesPresentationModel>("employers/candidates/blocklists/temporary/partial", c => c.TemporaryPartialBlockList); PermanentPartialBlockList = context.MapAreaRoute <BlockListsController, MemberSearchSortCriteria, CandidatesPresentationModel>("employers/candidates/blocklists/permanent/partial", c => c.PermanentPartialBlockList); // Notes API. ApiNotes = context.MapAreaRoute <NotesApiController, Guid>("employers/candidates/notes/api", c => c.Notes); ApiNewNote = context.MapAreaRoute <NotesApiController, Guid[], string, bool>("employers/candidates/notes/api/new", c => c.NewNote); ApiEditNote = context.MapAreaRoute <NotesApiController, Guid, string, bool?>("employers/candidates/notes/api/{noteId}/edit", c => c.EditNote); ApiDeleteNote = context.MapAreaRoute <NotesApiController, Guid>("employers/candidates/notes/api/{noteId}/delete", c => c.DeleteNote); context.MapAreaRoute <NotesApiController, Guid>("employers/candidates/notes/api/{noteId}", c => c.Note); }
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) { Photo = context.MapAreaRoute <FriendsFilesController, Guid>("members/friends/{friendId}/photo", c => c.Photo); }
public static void RegisterRoutes(AreaRegistrationContext context) { Upload = context.MapAreaRoute <ResumesApiController, HttpPostedFileBase>("api/resumes/upload", c => c.Upload); context.MapAreaRoute <ResumesApiController, Guid>("api/resumes/parse", c => c.Parse); }
public static RouteReference MapAreaRoute <TController>(this AreaRegistrationContext context, bool nameRoute, string routeUrl, Expression <Func <TController, Func <ActionResult> > > action, params IRouteConstraint[] constraints) { return(context.MapAreaRoute <TController>(nameRoute, routeUrl, (LambdaExpression)action, constraints)); }
public static void RegisterRoutes(AreaRegistrationContext context) { Account = context.MapAreaRoute<LinkedInController>("employers/linkedin", c => c.Account); }
public static void RegisterRoutes(AreaRegistrationContext context) { context.MapAreaRoute <PurchasesController, VerifyModel>(1, "credits/purchase", c => c.Verify); }
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) { context.MapAreaRoute <AccountsApiController, EmployerJoinModel>(1, "employers/join", c => c.Join); context.MapAreaRoute <AccountsApiController>(1, "employers/profile", c => c.Profile); }
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); }