Owneat Technical Guide main Help

Class CreateCategoryFormulaCommand

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

public sealed class CreateCategoryFormulaCommand : IRequest<Result<Category>>, IBaseRequest

Inheritance

object ← CreateCategoryFormulaCommand

Implements

IRequest<Result<Category\>\>, IBaseRequest

Inherited Members

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

Properties

CategoryId

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

Property Value

Guid

Description

public string Description { get; init; }

Property Value

string

DisplayImageUrl

public string DisplayImageUrl { get; init; }

Property Value

string

Name

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

Property Value

string

UnitPrice

[Required] [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

Last modified: 21 May 2024