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); }
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); }