Newer
Older
TestingWithoutInterfaces / src / PublicApi / CatalogItemEndpoints / UpdateCatalogItemEndpoint.UpdateCatalogItemRequest.cs
@Derek Comartin Derek Comartin on 5 Dec 2022 660 bytes Init
using System.ComponentModel.DataAnnotations;

namespace Microsoft.eShopWeb.PublicApi.CatalogItemEndpoints;

public class UpdateCatalogItemRequest : BaseRequest
{
    [Range(1, 10000)]
    public int Id { get; set; }
    [Range(1, 10000)]
    public int CatalogBrandId { get; set; }
    [Range(1, 10000)]
    public int CatalogTypeId { get; set; }
    [Required]
    public string Description { get; set; }
    [Required]
    public string Name { get; set; }
    public string PictureBase64 { get; set; }
    public string PictureUri { get; set; }
    public string PictureName { get; set; }
    [Range(0.01, 10000)]
    public decimal Price { get; set; }
}