You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ShopNCook/Models/Ingredient.cs

20 lines
397 B

using System.Runtime.Serialization;
namespace Models
{
[DataContract]
public class Ingredient
{
[DataMember]
public string Name { get; init; }
[DataMember]
public float Amount { get; init; }
public Ingredient(string name, float amount)
{
Name = name;
Amount = amount;
}
}
}