public virtual void AcceptFriendship(AcceptFriendshipInput input) { var friendship = _friendshipRepository.Get(input.Id); //TODO: Call FirstOrDefault and throw a specific exception? var currentUser = _taskeverUserRepository.Load(AbpUser.CurrentUserId.Value); friendship.AcceptBy(currentUser); SendAcceptEmail(friendship.Pair); }