Owneat Technical Guide main Help

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

string

DisplayImageUrl

public string DisplayImageUrl { get; set; }

Property Value

string

IsAvailable

public bool IsAvailable { get; set; }

Property Value

bool

Name

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

Property Value

string

ProductId

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

Property Value

Guid

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

double

VatRate

public VatRate VatRate { get; init; }

Property Value

VatRate

Last modified: 21 May 2024