FriendsController

This commit is contained in:
Artemy
2025-06-27 19:12:31 +07:00
parent ec44347bbe
commit 05298c004c
17 changed files with 1008 additions and 22 deletions
@@ -16,6 +16,8 @@ public class FriendshipValidator : IObjectValidator<Friendship>
throw new ArgumentException("Addresses cannot be empty", nameof(friendship.AddresseeId));
if(friendship.RequesterId == Guid.Empty)
throw new ArgumentException("Requester cannot be empty", nameof(friendship.RequesterId));
if(friendship.AddresseeId == friendship.RequesterId)
throw new ArgumentException("Addresses cannot be same", nameof(friendship.AddresseeId));
}
catch (Exception e)
{