Ignore:
Timestamp:
09/01/26 06:13:32 (4 weeks ago)
Author:
mmilevski <markomilevski3@…>
Branches:
main
Children:
d89d25b
Parents:
fa0fbaf
Message:

Minor fixes.

Location:
KernelRecordsMVC.Application/ViewModels
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • KernelRecordsMVC.Application/ViewModels/CartItemViewModel.cs

    rfa0fbaf rd2eccb3  
    1616
    1717    public long Stock { get; set; }
     18   
     19    public string? CoverPhoto { get; set; }
    1820
    1921    public decimal Total =>
  • KernelRecordsMVC.Application/ViewModels/CreateReleaseViewModel.cs

    rfa0fbaf rd2eccb3  
    1 namespace KernelRecordsMVC.Application.ViewModels;
     1using System.ComponentModel.DataAnnotations;
     2
     3namespace KernelRecordsMVC.Application.ViewModels;
    24
    35public class CreateReleaseViewModel
    46{
    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();
    669}
  • KernelRecordsMVC.Application/ViewModels/CreateTrackViewModel.cs

    rfa0fbaf rd2eccb3  
    1 namespace KernelRecordsMVC.Application.ViewModels;
     1using System.ComponentModel.DataAnnotations;
     2
     3namespace KernelRecordsMVC.Application.ViewModels;
    24
    35public class CreateTrackViewModel
    46{
    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();
    619}
  • KernelRecordsMVC.Application/ViewModels/EditProductViewModel.cs

    rfa0fbaf rd2eccb3  
    1 namespace KernelRecordsMVC.Application.ViewModels;
    2 
    3 using System.ComponentModel.DataAnnotations;
     1using System.ComponentModel.DataAnnotations;
    42using KernelRecordsMVC.Domain.Enums;
    5 
     3namespace KernelRecordsMVC.Application.ViewModels;
    64
    75public class EditProductViewModel
  • KernelRecordsMVC.Application/ViewModels/ProfileViewModel.cs

    rfa0fbaf rd2eccb3  
    1 namespace KernelRecordsMVC.Application.ViewModels;
     1using System.ComponentModel.DataAnnotations;
     2
     3namespace KernelRecordsMVC.Application.ViewModels;
    24
    35public class ProfileViewModel
    46{
    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; }
    623}
  • KernelRecordsMVC.Application/ViewModels/SaleItemViewModel.cs

    rfa0fbaf rd2eccb3  
    33public class SaleItemViewModel
    44{
    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!;
    624}
Note: See TracChangeset for help on using the changeset viewer.