Exercise Files

This commit is contained in:
Jess Chadwick
2018-06-06 23:57:58 -04:00
commit 20458e435e
4436 changed files with 1359080 additions and 0 deletions

View File

@ -0,0 +1,43 @@
using System.ComponentModel.DataAnnotations;
namespace HPlusSports.Requests
{
public class UpdateProductResponse
{
public bool Success { get; set; }
public string Message { get; set; }
}
public class UpdateProductRequest : MediatR.IRequest<UpdateProductResponse>
{
[Required]
public long Id { get; set; }
[Required]
public long CategoryId { get; set; }
[Required]
public string SKU { get; set; }
[Required]
public string Name { get; set; }
[Required]
[DataType(DataType.Text)]
public string Summary { get; set; }
[Required]
[DataType(DataType.MultilineText)]
public string Description { get; set; }
[Range(minimum: 0, maximum: double.MaxValue)]
[DataType(DataType.Currency)]
public double MSRP { get; set; }
[Range(minimum: 0, maximum: double.MaxValue)]
[DataType(DataType.Currency)]
public double Price { get; set; }
public string LastUpdatedUserId { get; set; }
}
}