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