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
Description
public string Description { get; init; }
Property Value
DisplayImageUrl
public string DisplayImageUrl { get; init; }
Property Value
Name
[Required]
public string Name { get; init; }
Property Value
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
Last modified: 21 May 2024