This commit is contained in:
Veljko Tosic
2026-02-11 22:53:22 +01:00
parent 1c7a12a01c
commit 3f349543d6
5 changed files with 6 additions and 11 deletions

View File

@@ -2,4 +2,4 @@ using AipsCore.Application.Abstract.Command;
namespace AipsCore.Application.Models.Whiteboard.Command.BanUserFromWhiteboard;
public record BanUserFromWhiteboardCommand(string CallerId, string UserId, string WhiteboardId) : ICommand;
public record BanUserFromWhiteboardCommand(string UserId, string WhiteboardId) : ICommand;

View File

@@ -9,10 +9,10 @@ public static class BanUserFromWhiteboardCommandErrors
public static ValidationError WhiteboardMembershipNotFound(WhiteboardId whiteboardId, UserId userId)
=> new ValidationError(
Code: "whiteboard_membership_not_found",
Message: $"User with id '{userId}' is not a member of whiteboard with id '{whiteboardId}'");
Message: $"User with id '{userId.IdValue}' is not a member of whiteboard with id '{whiteboardId.IdValue}'");
public static ValidationError WhiteboardNotFound(WhiteboardId whiteboardId)
=> new ValidationError(
Code: "whiteboard_not_found",
Message: $"Whiteboard with id '{whiteboardId}' not found.");
Message: $"Whiteboard with id '{whiteboardId.IdValue}' not found.");
}