main
|
Last change
on this file since 595d2e5 was d89d25b, checked in by mmilevski <markomilevski3@…>, 4 weeks ago |
|
Added few implementaions, minor UI changes.
|
-
Property mode
set to
100644
|
|
File size:
968 bytes
|
| Line | |
|---|
| 1 | using System.ComponentModel.DataAnnotations;
|
|---|
| 2 |
|
|---|
| 3 | namespace KernelRecordsMVC.Application.ViewModels;
|
|---|
| 4 |
|
|---|
| 5 | public class EditReleaseViewModel
|
|---|
| 6 | {
|
|---|
| 7 | public long ReleaseId { get; set; }
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 | [Required]
|
|---|
| 11 | public string Title { get; set; } = string.Empty;
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 | [Display(Name = "Record Label")]
|
|---|
| 15 | public string? RecordLabel { get; set; }
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 | [Required]
|
|---|
| 19 | public string Genre { get; set; } = string.Empty;
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 | [Required]
|
|---|
| 23 | [Display(Name = "Release Date")]
|
|---|
| 24 | [DataType(DataType.Date)]
|
|---|
| 25 | public DateTime ReleaseDate { get; set; }
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 | [Required]
|
|---|
| 29 | [Display(Name = "Cover Photo URL")]
|
|---|
| 30 | public string CoverPhoto { get; set; } = string.Empty;
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 | // ==========================================
|
|---|
| 34 | // ARTISTS
|
|---|
| 35 | // ==========================================
|
|---|
| 36 |
|
|---|
| 37 | [Required]
|
|---|
| 38 | [Display(Name = "Main Artist")]
|
|---|
| 39 | public long MainArtistId { get; set; }
|
|---|
| 40 |
|
|---|
| 41 |
|
|---|
| 42 | [Display(Name = "Featured Artists")]
|
|---|
| 43 | public List<long> FeaturedArtistIds { get; set; } = new();
|
|---|
| 44 | } |
|---|
Note:
See
TracBrowser
for help on using the repository browser.