/// <summary> /// Returns true if Order instances are equal /// </summary> /// <param name="other">Instance of Order to be compared</param> /// <returns>Boolean</returns> public bool Equals(Order other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( AdditionalInput == other.AdditionalInput || AdditionalInput != null && AdditionalInput.Equals(other.AdditionalInput) ) && ( AmountOfMoney == other.AmountOfMoney || AmountOfMoney != null && AmountOfMoney.Equals(other.AmountOfMoney) ) && ( Customer == other.Customer || Customer != null && Customer.Equals(other.Customer) ) && ( Items == other.Items || Items != null && Items.SequenceEqual(other.Items) ) && ( References == other.References || References != null && References.Equals(other.References) ) && ( Seller == other.Seller || Seller != null && Seller.Equals(other.Seller) ) && ( ShoppingCart == other.ShoppingCart || ShoppingCart != null && ShoppingCart.Equals(other.ShoppingCart) )); }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (AdditionalInput != null) { hashCode = hashCode * 59 + AdditionalInput.GetHashCode(); } if (AmountOfMoney != null) { hashCode = hashCode * 59 + AmountOfMoney.GetHashCode(); } if (Customer != null) { hashCode = hashCode * 59 + Customer.GetHashCode(); } if (Items != null) { hashCode = hashCode * 59 + Items.GetHashCode(); } if (References != null) { hashCode = hashCode * 59 + References.GetHashCode(); } if (Seller != null) { hashCode = hashCode * 59 + Seller.GetHashCode(); } if (ShoppingCart != null) { hashCode = hashCode * 59 + ShoppingCart.GetHashCode(); } return(hashCode); } }
public async Task AddAdditional(AdditionalInput input) { try { var menuItemDefine = await _menuRepository.GetSingleMenuItemDefine(input.MenuGuid); if (menuItemDefine != null) { menuItemDefine.Url = input.Url; menuItemDefine.Icon = input.Icon; menuItemDefine.Order = input.Order; menuItemDefine.Description = input.Description; menuItemDefine.DBTable = input.DBTable; menuItemDefine.ExecSQL = input.ExecSQL; menuItemDefine.DBView = input.DBView; menuItemDefine.Procedure = input.Procedure; await _menuRepository.UpdateAsync(menuItemDefine); } } catch (Exception ex) { throw ex; } }
public Task AddAdditional(AdditionalInput input) { throw new NotImplementedException(); }