Exemplo n.º 1
0
        public bool Equals(StoreModel other)
        {
            bool isEqual = false;

            isEqual = Name.Trim().ToLower() == other.Name.Trim().ToLower() &&
                      CompanyNumber.Trim().ToLower() == other.CompanyNumber.Trim().ToLower() &&
                      VatNumber.Trim().ToLower() == other.VatNumber.Trim().ToLower() &&
                      Address.Trim().ToLower() == other.Address.Trim().ToLower() &&
                      Regions.Equals(other.Regions);


            //if (isEqual)
            //{
            //
            //}
            return(isEqual);
        }