public bool DeepEquals(TrendingCategory?other)
 {
     return(other is not null &&
            CategoryName == other.CategoryName &&
            (Entries is not null ? Entries.DeepEquals(other.Entries) : other.Entries is null) &&
            CategoryId == other.CategoryId);
 }
 public void Update(TrendingCategory?other)
 {
     if (other is null)
     {
         return;
     }
     if (CategoryName != other.CategoryName)
     {
         CategoryName = other.CategoryName;
         OnPropertyChanged(nameof(CategoryName));
     }
     if (!Entries.DeepEquals(other.Entries))
     {
         Entries.Update(other.Entries);
         OnPropertyChanged(nameof(Entries));
     }
     if (CategoryId != other.CategoryId)
     {
         CategoryId = other.CategoryId;
         OnPropertyChanged(nameof(CategoryId));
     }
 }