main
|
Last change
on this file since fa0fbaf was 08aefc6, checked in by mmilevski <markomilevski3@…>, 4 weeks ago |
|
Initial commit
|
-
Property mode
set to
100644
|
|
File size:
632 bytes
|
| Line | |
|---|
| 1 | using System.ComponentModel.DataAnnotations;
|
|---|
| 2 | using KernelRecordsMVC.Domain.Enums;
|
|---|
| 3 |
|
|---|
| 4 | namespace KernelRecordsMVC.Application.ViewModels;
|
|---|
| 5 |
|
|---|
| 6 | public class CreateProductViewModel
|
|---|
| 7 | {
|
|---|
| 8 | [Required]
|
|---|
| 9 | [Display(Name = "Release")]
|
|---|
| 10 | public long ReleaseId { get; set; }
|
|---|
| 11 |
|
|---|
| 12 | [Required]
|
|---|
| 13 | [Display(Name = "Format")]
|
|---|
| 14 | public ProductFormat Format { get; set; }
|
|---|
| 15 |
|
|---|
| 16 | [Required]
|
|---|
| 17 | [Range(0.01, 100000)]
|
|---|
| 18 | public decimal Price { get; set; }
|
|---|
| 19 |
|
|---|
| 20 | [Required]
|
|---|
| 21 | [Display(Name = "Description")]
|
|---|
| 22 | public string ProductDescription { get; set; } = null!;
|
|---|
| 23 |
|
|---|
| 24 | [Required]
|
|---|
| 25 | [Range(0, long.MaxValue)]
|
|---|
| 26 | public long Stock { get; set; }
|
|---|
| 27 | } |
|---|
Note:
See
TracBrowser
for help on using the repository browser.