source: KernelRecordsMVC.Application/ViewModels/CreateReleaseViewModel.cs

main
Last change on this file was d2eccb3, checked in by mmilevski <markomilevski3@…>, 4 weeks ago

Minor fixes.

  • Property mode set to 100644
File size: 1.6 KB
RevLine 
[d2eccb3]1using System.ComponentModel.DataAnnotations;
2
3namespace KernelRecordsMVC.Application.ViewModels;
[fa0fbaf]4
5public class CreateReleaseViewModel
6{
[d2eccb3]7 // ==========================================
8 // RELEASE
9 // ==========================================
10
11 [Required]
12 [StringLength(200)]
13 public string Title { get; set; } = string.Empty;
14
15
16 [Display(Name = "Record Label")]
17 [StringLength(200)]
18 public string? RecordLabel { get; set; }
19
20
21 [Required]
22 [StringLength(100)]
23 public string Genre { get; set; } = string.Empty;
24
25
26 [Required]
27 [Display(Name = "Release Date")]
28 [DataType(DataType.Date)]
29 public DateTime ReleaseDate { get; set; } = DateTime.Today;
30
31
32 [Required]
33 [Display(Name = "Cover Photo")]
34 public string CoverPhoto { get; set; } = string.Empty;
35
36
37 // ALBUM or SINGLE
38 [Required]
39 [Display(Name = "Release Type")]
40 public string ReleaseType { get; set; } = "ALBUM";
41
42
43 // ==========================================
44 // ARTISTS
45 // ==========================================
46
47 [Required]
48 [Display(Name = "Main Artist")]
49 public long MainArtistId { get; set; }
50
51
52 [Display(Name = "Featured Artists")]
53 public List<long> FeaturedArtistIds { get; set; } = new();
54
55
56 // ==========================================
57 // SINGLE
58 // ==========================================
59
60 [Display(Name = "Single Duration")]
61 public string? SingleDuration { get; set; }
62
63
64 // ==========================================
65 // ALBUM
66 // ==========================================
67
68 public List<CreateTrackViewModel> Tracks { get; set; } = new();
[fa0fbaf]69}
Note: See TracBrowser for help on using the repository browser.