Owneat Technical Guide main Help

Class UpdateIngredientCommand

Namespace: Restaurant.Application.Requests.Ingredient
Assembly: Restaurant.Application.dll

public sealed class UpdateIngredientCommand : IRequest<Result<Ingredient>>, IBaseRequest

Inheritance

object ← UpdateIngredientCommand

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

Id

[Required] [JsonIgnore] public Guid Id { get; set; }

Property Value

Guid

Name

[Required] public string Name { get; init; }

Property Value

string

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

decimal

Unit

[Required] [MaxLength(10)] public string Unit { get; init; }

Property Value

string

Last modified: 21 May 2024