public bool Equals(ToppingsViewModel p) { if ((object)p == null) { return(false); } return((Id == p.Id) && (Name == p.Name)); }
public override bool Equals(System.Object obj) { if (obj == null) { return(false); } ToppingsViewModel p = obj as ToppingsViewModel; if ((System.Object)p == null) { return(false); } return((Id == p.Id) && (Name == p.Name)); }