Пример #1
0
        public void ResendInvite(long id)
        {
            var user = _userRepository.Query()
                       .FirstOrDefault(u => !u.Deleted && u.IsWaitingConfirmation && u.Id == id);

            if (user == null)
            {
                throw new EntityNotFoundException("User not found by id");
            }

            _inviteService.ExpireInvite(id);
            _inviteService.InviteUser(user);
        }