Exemplo n.º 1
0
 public virtual void Unlike(int eventId, string userId)
 {
     if (_likeRepository.Exists(new Like()
     {
         UserId = userId, EventId = eventId
     }))
     {
         _likeRepository.Unlike(new Like()
         {
             UserId = userId, EventId = eventId
         });
     }
 }