Class CreateIngredientCommand
Namespace: Restaurant.Application.Requests.Ingredient
Assembly: Restaurant.Application.dll
public sealed class CreateIngredientCommand : IRequest<Result<Ingredient>>, IBaseRequest
Inheritance
object ← CreateIngredientCommand
Implements
IRequest<Result<Ingredient\>\>, IBaseRequest
Inherited Members
object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)
Properties
Name
[Required]
[MaxLength(50)]
public string Name { get; init; }
Property Value
Quantity
[Required]
[Range(0.1, 1.7976931348623157E+308, ErrorMessage = "The field {0} must be equal or greater than {1}.")]
public decimal Quantity { get; init; }
Property Value
Unit
[Required]
[MaxLength(10)]
public string Unit { get; init; }
Property Value
Last modified: 21 May 2024