Routes verified from the controller 2026-07-21. Class-level [Authorize]; admin/Settings access required.
[Admin/Custom_Notifications] (10)| Method | Route | Purpose |
|---|---|---|
| GET | View/New |
Bootstrap the create form. |
| GET | View/Edit |
Bootstrap the edit form. |
| GET | GetTypes |
The notification types (event categories). |
| GET | GetValidStages |
The valid stages (Creation/Approval/Rejection). |
| GET | GetEntities |
The pickable recipient roles (admin tiers + custom roles). |
| GET | Select |
List configured rules. |
| Method | Route | Purpose |
|---|---|---|
| POST | Add |
Create a rule (type × stage → roles). |
| POST | Update |
Edit a rule's recipients. |
| POST | Enable |
Turn a rule on. |
| POST | Disable |
Turn a rule off. |
No
Delete— rules are toggled, not removed. (RFD-003)
Add: { customNotificationTypeId, stage (1|2|3), recipients: [roleId, …] }
GetEntities returns customNotificationEntitySelect — the role options. Stages come from GetValidStages (Creation=1, Approval=2, Rejection=3). Types from GetTypes, grouped by module in the UI.
GetEntities = hardcoded admin-tier list + MembershipService.GetRoleList(false) (custom roles). ⚠️ Ids 4-6 collide on one role (RFD-002).
Employee/NotificationsController, NotificationsController (/employee/notifications/select).Admin/AnnouncementsController, Admin/Welcome_MessagesController.Authorization: Bearer <token>; tenant from claims (Identity). Rules are CompanyId-scoped (TenantDb); recipient roles resolved from the role catalog.