feat: Refactor Titre views and view models to use Administration area
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
// <copyright file="CommentaireViewModel.cs" company="Webzine">
|
||||
// Copyright (c) Webzine. All rights reserved.
|
||||
// </copyright>
|
||||
|
||||
using Webzine.Entity;
|
||||
|
||||
namespace Webzine.WebApplication.ViewModels
|
||||
{
|
||||
/// <summary>
|
||||
/// ViewModel pour afficher la liste des commentaires en administration.
|
||||
/// </summary>
|
||||
public class CommentaireViewModel
|
||||
{
|
||||
/// <summary>
|
||||
/// Obtient ou définit la liste des commentaires.
|
||||
/// </summary>
|
||||
public IEnumerable<Commentaire> Commentaires { get; set; } = new List<Commentaire>();
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user