public FriendshipRemovedDomainEvent(FriendshipId friendshipId, PersonId firstPerson, PersonId secondPerson, DateTimeOffset createdAt) { FriendshipId = friendshipId; FirstPerson = firstPerson; SecondPerson = secondPerson; CreatedAt = createdAt; }
public async Task <Friendship> GetAsync(FriendshipId friendshipId) { return(await _context.Friendships.FirstOrDefaultAsync(x => x.Id == friendshipId)); }