Class UpdateProductCommand
Namespace: Restaurant.Application.Requests.Product
Assembly: Restaurant.Application.dll
public sealed class UpdateProductCommand : IRequest<Result<Product>>, IBaseRequest
Inheritance
object ← UpdateProductCommand
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
Description
public string Description { get; init; }
Property Value
DisplayImageUrl
public string DisplayImageUrl { get; set; }
Property Value
IsAvailable
public bool IsAvailable { get; set; }
Property Value
Name
[Required]
public string Name { get; init; }
Property Value
ProductId
[JsonIgnore]
[Required]
public Guid ProductId { get; set; }
Property Value
Stock
public uint? Stock { get; set; }
Property Value
uint?
UnitPrice
[Range(0.1, 1.7976931348623157E+308, ErrorMessage = "The field {0} must be equal or greater than {1}.")]
public double UnitPrice { get; init; }
Property Value
VatRate
public VatRate VatRate { get; init; }
Property Value
VatRate
Last modified: 21 May 2024