private void SwitchMineFlag(MyBookSelectorListDto book) { book.IsMine = !book.IsMine; if (book.IsMine) { this.SelectedIndexList.Add(book.Id); } else { this.SelectedIndexList.Remove(book.Id); } }
private void SwitchReadFlag(MyBookSelectorListDto book) { book.IsRead = !book.IsRead; this.SaveList.Add(new BookReadStatusModel { Id = book.Id, Read = book.IsRead }); if (book.IsRead) { this.SelectedIndexList.Add(book.Id); } else { this.SelectedIndexList.Remove(book.Id); } }