Début du DTO et des extensions

Converter
Maxime ROCHER 4 months ago
parent 9f1a7cb6b8
commit 1e2a18613e

@ -0,0 +1,7 @@
namespace WF_WebAdmin.Converter
{
public class AdminDTO
{
}
}

@ -0,0 +1,6 @@
namespace WF_WebAdmin.Converter
{
public class AdminExtension
{
}
}

@ -0,0 +1,18 @@
using Microsoft.AspNetCore.DataProtection.KeyManagement;
using System;
namespace WF_WebAdmin.Converter
{
public class QuoteDTO
{
private int id_quote;
private string content;
private int likes;
private string langue;
private bool isValide;
private string? reason;
private int id_caracter;
private int id_source;
private int? id_user_verif;
}
}

@ -0,0 +1,7 @@
namespace WF_WebAdmin.Converter
{
public class QuoteExtension
{
}
}

@ -4,12 +4,12 @@
{ {
public int Id { get; set; } public int Id { get; set; }
public string Content { get; set; } public string Content { get; set; }
public string Charac { get; set; } public int Likes { get; set; }
public string ImgPath { get; set; }
public string TitleSrc { get; set; }
public DateTime DateSrc { get; set; }
public int Like { get; set; }
public string Langue { get; set; } public string Langue { get; set; }
public string UserProposition { get; set; } public bool IsValide { get; set; }
public string? Reason { get; set; }
public int IdCaracter { get; set; }
public int IdSource { get; set; }
public int IdUserVerif { get; set; }
} }
} }

@ -21,13 +21,12 @@ else
<p><strong>ID :</strong> @quote.Id</p> <p><strong>ID :</strong> @quote.Id</p>
<p><strong>Contenu :</strong> @quote.Content</p> <p><strong>Contenu :</strong> @quote.Content</p>
<p><strong>Langue :</strong> @quote.Langue</p> <p><strong>Langue :</strong> @quote.Langue</p>
<p><strong>Likes :</strong> @quote.Like</p>
<p><strong>Personnage :</strong> @quote.Charac</p> <p><strong>Personnage :</strong> @quote.Charac</p>
<p><strong>Image :</strong> @quote.ImgPath</p> <p><strong>Image :</strong> @quote.ImgPath</p>
<p><strong>Source :</strong> @quote.TitleSrc</p> <p><strong>Source :</strong> @quote.TitleSrc</p>
<p><strong>Date de source :</strong> @quote.DateSrc.ToShortDateString()</p> <p><strong>Date de source :</strong> @quote.DateSrc.ToShortDateString()</p>
<p><strong>Utilisateur proposition :</strong> @quote.UserProposition</p> <p><strong>Utilisateur :</strong> @quote.UserProposition</p>
<button @onclick="() => ValiderQuote(quote.Id)">Valider</button> <button @onclick="() => ValiderQuote(quote.Id)">Valider</button>
<button @onclick="() => RejeterQuote(quote.Id)">Rejeter</button> <button @onclick="() => RejeterQuote(quote.Id)">Rejeter</button>

Loading…
Cancel
Save