diff --git a/WF-WebAdmin/WF-WebAdmin/Converter/AdminDTO.cs b/WF-WebAdmin/WF-WebAdmin/Converter/AdminDTO.cs new file mode 100644 index 0000000..4356cfe --- /dev/null +++ b/WF-WebAdmin/WF-WebAdmin/Converter/AdminDTO.cs @@ -0,0 +1,7 @@ +namespace WF_WebAdmin.Converter +{ + public class AdminDTO + { + + } +} diff --git a/WF-WebAdmin/WF-WebAdmin/Converter/AdminExtension.cs b/WF-WebAdmin/WF-WebAdmin/Converter/AdminExtension.cs new file mode 100644 index 0000000..9b6ef16 --- /dev/null +++ b/WF-WebAdmin/WF-WebAdmin/Converter/AdminExtension.cs @@ -0,0 +1,6 @@ +namespace WF_WebAdmin.Converter +{ + public class AdminExtension + { + } +} diff --git a/WF-WebAdmin/WF-WebAdmin/Converter/QuoteDTO.cs b/WF-WebAdmin/WF-WebAdmin/Converter/QuoteDTO.cs new file mode 100644 index 0000000..532e700 --- /dev/null +++ b/WF-WebAdmin/WF-WebAdmin/Converter/QuoteDTO.cs @@ -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; + } +} diff --git a/WF-WebAdmin/WF-WebAdmin/Converter/QuoteExtension.cs b/WF-WebAdmin/WF-WebAdmin/Converter/QuoteExtension.cs new file mode 100644 index 0000000..a449430 --- /dev/null +++ b/WF-WebAdmin/WF-WebAdmin/Converter/QuoteExtension.cs @@ -0,0 +1,7 @@ +namespace WF_WebAdmin.Converter +{ + public class QuoteExtension + { + + } +} diff --git a/WF-WebAdmin/WF-WebAdmin/Model/Quote.cs b/WF-WebAdmin/WF-WebAdmin/Model/Quote.cs index 9fcb751..53a25b2 100644 --- a/WF-WebAdmin/WF-WebAdmin/Model/Quote.cs +++ b/WF-WebAdmin/WF-WebAdmin/Model/Quote.cs @@ -4,12 +4,12 @@ { public int Id { get; set; } public string Content { get; set; } - public string Charac { get; set; } - public string ImgPath { get; set; } - public string TitleSrc { get; set; } - public DateTime DateSrc { get; set; } - public int Like { get; set; } + public int Likes { 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; } } } diff --git a/WF-WebAdmin/WF-WebAdmin/Pages/ValidQuote.razor b/WF-WebAdmin/WF-WebAdmin/Pages/ValidQuote.razor index da423b0..57f8ecc 100644 --- a/WF-WebAdmin/WF-WebAdmin/Pages/ValidQuote.razor +++ b/WF-WebAdmin/WF-WebAdmin/Pages/ValidQuote.razor @@ -21,13 +21,12 @@ else
ID : @quote.Id
Contenu : @quote.Content
Langue : @quote.Langue
-Likes : @quote.Like
Personnage : @quote.Charac
Image : @quote.ImgPath
Source : @quote.TitleSrc
Date de source : @quote.DateSrc.ToShortDateString()
-Utilisateur proposition : @quote.UserProposition
+Utilisateur : @quote.UserProposition