Changeset d2eccb3 for KernelRecordsMVC.Application/ViewModels
- Timestamp:
- 09/01/26 06:13:32 (4 weeks ago)
- Branches:
- main
- Children:
- d89d25b
- Parents:
- fa0fbaf
- Location:
- KernelRecordsMVC.Application/ViewModels
- Files:
-
- 1 added
- 6 edited
-
CartItemViewModel.cs (modified) (1 diff)
-
CreateReleaseViewModel.cs (modified) (1 diff)
-
CreateTrackViewModel.cs (modified) (1 diff)
-
EditProductViewModel.cs (modified) (1 diff)
-
ProfileViewModel.cs (modified) (1 diff)
-
SaleItemViewModel.cs (modified) (1 diff)
-
TopSellerViewModel.cs (added)
Legend:
- Unmodified
- Added
- Removed
-
KernelRecordsMVC.Application/ViewModels/CartItemViewModel.cs
rfa0fbaf rd2eccb3 16 16 17 17 public long Stock { get; set; } 18 19 public string? CoverPhoto { get; set; } 18 20 19 21 public decimal Total => -
KernelRecordsMVC.Application/ViewModels/CreateReleaseViewModel.cs
rfa0fbaf rd2eccb3 1 namespace KernelRecordsMVC.Application.ViewModels; 1 using System.ComponentModel.DataAnnotations; 2 3 namespace KernelRecordsMVC.Application.ViewModels; 2 4 3 5 public class CreateReleaseViewModel 4 6 { 5 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(); 6 69 } -
KernelRecordsMVC.Application/ViewModels/CreateTrackViewModel.cs
rfa0fbaf rd2eccb3 1 namespace KernelRecordsMVC.Application.ViewModels; 1 using System.ComponentModel.DataAnnotations; 2 3 namespace KernelRecordsMVC.Application.ViewModels; 2 4 3 5 public class CreateTrackViewModel 4 6 { 5 7 [Required] 8 [Display(Name = "Track Name")] 9 public string SongName { get; set; } = string.Empty; 10 11 12 [Required] 13 [Display(Name = "Duration")] 14 public string SongDuration { get; set; } = string.Empty; 15 16 17 [Display(Name = "Track Artists")] 18 public List<long> ArtistIds { get; set; } = new(); 6 19 } -
KernelRecordsMVC.Application/ViewModels/EditProductViewModel.cs
rfa0fbaf rd2eccb3 1 namespace KernelRecordsMVC.Application.ViewModels; 2 3 using System.ComponentModel.DataAnnotations; 1 using System.ComponentModel.DataAnnotations; 4 2 using KernelRecordsMVC.Domain.Enums; 5 3 namespace KernelRecordsMVC.Application.ViewModels; 6 4 7 5 public class EditProductViewModel -
KernelRecordsMVC.Application/ViewModels/ProfileViewModel.cs
rfa0fbaf rd2eccb3 1 namespace KernelRecordsMVC.Application.ViewModels; 1 using System.ComponentModel.DataAnnotations; 2 3 namespace KernelRecordsMVC.Application.ViewModels; 2 4 3 5 public class ProfileViewModel 4 6 { 5 7 public long UserId { get; set; } 8 9 public string Username { get; set; } = null!; 10 11 [Required] 12 [EmailAddress] 13 public string Email { get; set; } = null!; 14 15 [Phone] 16 public string? TelephoneNumber { get; set; } 17 18 public string? ShippingAddress { get; set; } 19 20 public DateTime DateCreated { get; set; } 21 22 public long PointsCollected { get; set; } 6 23 } -
KernelRecordsMVC.Application/ViewModels/SaleItemViewModel.cs
rfa0fbaf rd2eccb3 3 3 public class SaleItemViewModel 4 4 { 5 5 public long ProductId { get; set; } 6 7 public long ReleaseId { get; set; } 8 9 public string ReleaseTitle { get; set; } = null!; 10 11 public string? CoverPhoto { get; set; } 12 13 public string Format { get; set; } = null!; 14 15 public decimal OriginalPrice { get; set; } 16 17 public decimal SalePrice { get; set; } 18 19 public decimal DiscountPercentage { get; set; } 20 21 public long Stock { get; set; } 22 23 public string ArtistName { get; set; } = null!; 6 24 }
Note:
See TracChangeset
for help on using the changeset viewer.
