Refactor interaction and user deletion logic
Consolidated repeated methods for interaction/user deletion into reusable components to improve maintainability. Introduced a `ConfirmDialog` for consistent confirmation UI and streamlined associated logic across pages. Removed redundant methods and enhanced admin-specific page security checks.
This commit is contained in:
@@ -31,12 +31,6 @@ namespace FoodsharingSiegen.Server.BaseClasses
|
||||
[Inject]
|
||||
protected AuthService AuthService { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the message (ab)
|
||||
/// </summary>
|
||||
[Inject]
|
||||
protected IMessageService Message { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the modal service for handling modals within the application
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user