示例#1
0
        public async Task <bool> LeaveAsync(int id, int userId)
        {
            ListShare share = await _listsRepository.LeaveAsync(id, userId);

            await _notificationsRepository.DeleteForUserAndListAsync(userId, id);

            return(share.IsAccepted.Value != false);
        }