feat: Refactor Titre views and view models to use Administration area

This commit is contained in:
mirage
2026-03-05 15:55:07 +01:00
parent c42a4bb72c
commit de6ca18eac
13 changed files with 28 additions and 12 deletions

View File

@@ -0,0 +1,10 @@
namespace Webzine.WebApplication.Areas.Administration.ViewModels.Titre;
public class AdminTitreDelete
{
public int Id { get; set; }
public string Titre { get; set; }
public string Artiste { get; set; }
}

View File

@@ -0,0 +1,34 @@
using Microsoft.AspNetCore.Mvc.Rendering;
namespace Webzine.WebApplication.Areas.Administration.ViewModels.Titre;
public class AdminTitreForm
{
public int Id { get; set; }
public int IdArtiste { get; set; }
public string Libelle { get; set; }
public string Album { get; set; }
public string Chronique { get; set; }
public DateTime DateSortie { get; set; }
public int Duree { get; set; }
public string UrlJaquette { get; set; }
public string UrlEcoute { get; set; }
public int NbLectures { get; set; }
public int NbLikes { get; set; }
public List<int> Styles { get; set; } = new();
public List<SelectListItem> Artistes { get; set; }
public List<SelectListItem> AllStyles { get; set; }
}

View File

@@ -0,0 +1,21 @@
namespace Webzine.WebApplication.Areas.Administration.ViewModels.Titre
{
public class AdminTitreList
{
public int Id { get; set; }
public string Artiste { get; set; }
public string Titre { get; set; }
public string Duree { get; set; }
public DateTime DateSortie { get; set; }
public int NbLectures { get; set; }
public int NbLikes { get; set; }
public int NbCommentaires { get; set; }
}
}