Skip to content

Commit 2ca2849

Browse files
Payments module changed to Library and Logs controller changed to Error in seeder.
1 parent d1fade5 commit 2ca2849

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

UserManagementApi/DbSeeder.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ public static void Seed(IServiceProvider serviceProvider)
2525
// ----- Modules (link via navigation) -----
2626
var modUsers = new Module { Name = "User Management", Area = "Admin", Controller = "Users", Action = "Index", Category = adminCat };
2727
var modRoles = new Module { Name = "Role Management", Area = "Admin", Controller = "Roles", Action = "Index", Category = adminCat };
28-
var modPay = new Module { Name = "Payments", Area = "Ops", Controller = "Payments", Action = "Index", Category = opsCat };
29-
var modLog = new Module { Name = "Logs", Area = "Admin", Controller = "Logs", Action = "Index", Category = adminCat };
28+
var modPay = new Module { Name = "Library", Area = "Ops", Controller = "Library", Action = "Index", Category = opsCat };
29+
var modLog = new Module { Name = "Logs", Area = "Admin", Controller = "Error", Action = "Index", Category = adminCat };
3030
context.Modules.AddRange(modUsers, modRoles, modPay, modLog);
3131
context.SaveChanges();
3232

@@ -35,7 +35,7 @@ public static void Seed(IServiceProvider serviceProvider)
3535
var fUsersEdit = new Function { Module = modUsers, Code = "Users.Edit", DisplayName = "Edit Users" };
3636
var fRolesView = new Function { Module = modRoles, Code = "Roles.View", DisplayName = "View Roles" };
3737
var fRolesAssign = new Function { Module = modRoles, Code = "Roles.Assign", DisplayName = "Assign Roles" };
38-
var fPayView = new Function { Module = modPay, Code = "Payments.View", DisplayName = "View Payments" };
38+
var fPayView = new Function { Module = modPay, Code = "Library.View", DisplayName = "View Library" };
3939
var fLogView = new Function { Module = modLog, Code = "Logs.View", DisplayName = "View Logs" };
4040
context.Functions.AddRange(fUsersView, fUsersEdit, fRolesView, fRolesAssign, fPayView, fLogView);
4141
context.SaveChanges();

0 commit comments

Comments
 (0)