Owneat Technical Guide main Help

Class CreateProductIngredientCommand

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

public sealed class CreateProductIngredientCommand : IRequest<Result<Product>>, IBaseRequest

Inheritance

object ← CreateProductIngredientCommand

Implements

IRequest<Result<Product\>\>, IBaseRequest

Inherited Members

object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)

Properties

Name

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

Property Value

string

ProductId

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

Property Value

Guid

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] public string Unit { get; init; }

Property Value

string

Last modified: 21 May 2024