Initial commit
This commit is contained in:
@@ -0,0 +1,158 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
namespace GestionDeCommerceInfoClasseBDDNCouches.DataLayer
|
||||
{
|
||||
public class BDDAccesArticle : BDDAccesBase
|
||||
{
|
||||
//private string sCHConnBDD;
|
||||
//public string SCHConnBDD { get => sCHConnBDD; set => sCHConnBDD = value; }
|
||||
|
||||
//private SqlCommand CommandSQL = new SqlCommand();
|
||||
|
||||
public BDDAccesArticle(string schConn) : base(schConn)
|
||||
{
|
||||
//SCHConnBDD = schConn;
|
||||
//CommandSQL.Connection = new SqlConnection(schConn);
|
||||
}
|
||||
public List<Article> ListArticles()
|
||||
{
|
||||
CommandSQL.Parameters.Clear();
|
||||
List<Article> lstArt = new List<Article>();
|
||||
CommandSQL.CommandType = System.Data.CommandType.StoredProcedure;
|
||||
CommandSQL.CommandText = "ListArticle";
|
||||
CommandSQL.Parameters.AddWithValue("@ID", Convert.DBNull);
|
||||
CommandSQL.Connection.Open();
|
||||
SqlDataReader data = CommandSQL.ExecuteReader();
|
||||
while (data.Read())
|
||||
{
|
||||
//Console.WriteLine(data.ToString()+"\n"+ (data["ID"].ToString()) +"__"+ (data["PrixHTVA"].ToString())+"__"+(data["Stock"].ToString())+"__"+ ((data["Visible"].ToString()))+"__"+ ((data["Actif"].ToString())));
|
||||
lstArt.Add(new Article(int.Parse(data["ID"].ToString()), data["Designation"].ToString(),
|
||||
float.Parse(data["PrixHTVA"].ToString()),
|
||||
int.Parse(data["Stock"].ToString()),
|
||||
(bool.Parse(data["Visible"].ToString())),
|
||||
(bool.Parse(data["Actif"].ToString()))));
|
||||
}
|
||||
CommandSQL.Connection.Close();
|
||||
return lstArt;
|
||||
}
|
||||
public List<Article> VerifStock(int alerteStock)
|
||||
{
|
||||
CommandSQL.Parameters.Clear();
|
||||
List<Article> lstArt = new List<Article>();
|
||||
CommandSQL.CommandType = System.Data.CommandType.StoredProcedure;
|
||||
CommandSQL.CommandText = "StockUnder";
|
||||
CommandSQL.Parameters.AddWithValue("@Stock", alerteStock);
|
||||
CommandSQL.Connection.Open();
|
||||
SqlDataReader data = CommandSQL.ExecuteReader();
|
||||
while (data.Read())
|
||||
{
|
||||
//Console.WriteLine(data.ToString()+"\n"+ (data["ID"].ToString()) +"__"+ (data["PrixHTVA"].ToString())+"__"+(data["Stock"].ToString())+"__"+ ((data["Visible"].ToString()))+"__"+ ((data["Actif"].ToString())));
|
||||
lstArt.Add(new Article(int.Parse(data["ID"].ToString()), data["Designation"].ToString(),
|
||||
float.Parse(data["PrixHTVA"].ToString()),
|
||||
int.Parse(data["Stock"].ToString()),
|
||||
(bool.Parse(data["Visible"].ToString())),
|
||||
(bool.Parse(data["Actif"].ToString()))));
|
||||
}
|
||||
CommandSQL.Connection.Close();
|
||||
return lstArt;
|
||||
}
|
||||
public Article LireArticle(int id)
|
||||
{
|
||||
CommandSQL.Parameters.Clear();
|
||||
Article lstArt;
|
||||
CommandSQL.CommandType = System.Data.CommandType.StoredProcedure;
|
||||
CommandSQL.CommandText = "ListArticle";
|
||||
CommandSQL.Parameters.AddWithValue("@ID", id);
|
||||
CommandSQL.Connection.Open();
|
||||
SqlDataReader data = CommandSQL.ExecuteReader();
|
||||
|
||||
if (data.Read())
|
||||
{
|
||||
//Console.WriteLine(data.ToString()+"\n"+ (data["ID"].ToString()) +"__"+ (data["PrixHTVA"].ToString())+"__"+(data["Stock"].ToString())+"__"+ ((data["Visible"].ToString()))+"__"+ ((data["Actif"].ToString())));
|
||||
lstArt = new Article(int.Parse(data["ID"].ToString()), data["Designation"].ToString(),
|
||||
float.Parse(data["PrixHTVA"].ToString()),
|
||||
int.Parse(data["Stock"].ToString()),
|
||||
(bool.Parse(data["Visible"].ToString())),
|
||||
(bool.Parse(data["Actif"].ToString())));
|
||||
CommandSQL.Connection.Close();
|
||||
return lstArt;
|
||||
}
|
||||
else
|
||||
{
|
||||
CommandSQL.Connection.Close();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
public int AjouterArticle(Article article)
|
||||
{
|
||||
CommandSQL.CommandType = System.Data.CommandType.StoredProcedure;
|
||||
CommandSQL.CommandText = "AjoutArticle";
|
||||
CommandSQL.Parameters.Clear();
|
||||
CommandSQL.Parameters.Add("ID", SqlDbType.Int);
|
||||
Direction("ID", ParameterDirection.Output);
|
||||
CommandSQL.Parameters.AddWithValue("@Designation",article.Designation);
|
||||
CommandSQL.Parameters.AddWithValue("@PrixHTVA",article.PrixHTVA);
|
||||
CommandSQL.Parameters.AddWithValue("@Stock",article.Stock);
|
||||
CommandSQL.Parameters.AddWithValue("@Visible",article.Visible);
|
||||
CommandSQL.Parameters.AddWithValue("@Actif",article.Actif);
|
||||
CommandSQL.Connection.Open();
|
||||
SqlDataReader data = CommandSQL.ExecuteReader();
|
||||
int a = int.Parse(CommandSQL.Parameters["ID"].Value.ToString());
|
||||
article.ID = a;
|
||||
CommandSQL.Connection.Close();
|
||||
return a;
|
||||
}
|
||||
public void AjouterArticles(List<Article> articles)
|
||||
{
|
||||
foreach (Article article in articles)
|
||||
article.ID = AjouterArticle(article);
|
||||
}
|
||||
public void ModifArticle(Article article)
|
||||
{
|
||||
CommandSQL.Parameters.Clear();
|
||||
CommandSQL.CommandType = System.Data.CommandType.StoredProcedure;
|
||||
CommandSQL.CommandText = "ModifArticle";
|
||||
CommandSQL.Parameters.AddWithValue("@ID", article.ID);
|
||||
CommandSQL.Parameters.AddWithValue("@Designation", article.Designation);
|
||||
CommandSQL.Parameters.AddWithValue("@PrixHTVA", article.PrixHTVA);
|
||||
CommandSQL.Parameters.AddWithValue("@Stock", article.Stock);
|
||||
CommandSQL.Parameters.AddWithValue("@Visible", article.Visible);
|
||||
CommandSQL.Parameters.AddWithValue("@Actif", article.Actif);
|
||||
CommandSQL.Connection.Open();
|
||||
SqlDataReader data = CommandSQL.ExecuteReader();
|
||||
CommandSQL.Connection.Close();
|
||||
}
|
||||
public void ModifArticles(List<Article> articles)
|
||||
{
|
||||
foreach (Article article in articles)
|
||||
ModifArticle(article);
|
||||
}
|
||||
public void SuprimerArticle(int id, bool definitivement)
|
||||
{
|
||||
CommandSQL.Parameters.Clear();
|
||||
CommandSQL.CommandType = System.Data.CommandType.StoredProcedure;
|
||||
CommandSQL.CommandText = "SuprimerArticle";
|
||||
CommandSQL.Parameters.AddWithValue("@ID", id);
|
||||
CommandSQL.Parameters.AddWithValue("@definitivement", definitivement);
|
||||
CommandSQL.Connection.Open();
|
||||
SqlDataReader data = CommandSQL.ExecuteReader();
|
||||
CommandSQL.Connection.Close();
|
||||
}
|
||||
public void SuprimerArticle(Article article, bool definitivement)
|
||||
{
|
||||
SuprimerArticle(article.ID, definitivement);
|
||||
}
|
||||
public void SuprimerArticle(List<Article> articles, bool definitivement)
|
||||
{
|
||||
foreach (Article article in articles)
|
||||
SuprimerArticle(article.ID, definitivement);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace GestionDeCommerceInfoClasseBDDNCouches.DataLayer
|
||||
{
|
||||
public class BDDAccesBase
|
||||
{
|
||||
private string sCHConnBDD;
|
||||
public string SCHConnBDD { get => sCHConnBDD; set => sCHConnBDD = value; }
|
||||
public SqlCommand CommandSQL { get => commandSQL; set { } }
|
||||
|
||||
private SqlCommand commandSQL = new SqlCommand();
|
||||
public BDDAccesBase(string schConn)
|
||||
{
|
||||
SCHConnBDD = schConn;
|
||||
CommandSQL.Connection = new SqlConnection(schConn);
|
||||
}
|
||||
#region Utilitaires
|
||||
public void Direction(string sParam, ParameterDirection dParam)
|
||||
{ CommandSQL.Parameters[sParam].Direction = dParam; }
|
||||
public string LireParametre(string sParam)
|
||||
{ return CommandSQL.Parameters[sParam].Value.ToString(); }
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using GestionDeCommerceInfoClasseBDDNCouches;
|
||||
|
||||
namespace GestionDeCommerceInfoClasseBDDNCouches.DataLayer
|
||||
{
|
||||
public class BDDAccesPanier : BDDAccesBase
|
||||
{
|
||||
public BDDAccesPanier(string schConn) : base(schConn)
|
||||
{
|
||||
}
|
||||
public List<Panier.LSTArticle> listeArticlePanier(int panierId)
|
||||
{
|
||||
CommandSQL.Parameters.Clear();
|
||||
List<Panier.LSTArticle> lstARt = new List<Panier.LSTArticle>();
|
||||
CommandSQL.CommandType = System.Data.CommandType.StoredProcedure;
|
||||
CommandSQL.CommandText = "ListArticlePanier";
|
||||
CommandSQL.Parameters.AddWithValue("@ID", panierId);
|
||||
CommandSQL.Connection.Open();
|
||||
SqlDataReader data = CommandSQL.ExecuteReader();
|
||||
while (data.Read())
|
||||
{
|
||||
lstARt.Add(new Panier.LSTArticle(new BDDAccesArticle(base.SCHConnBDD).LireArticle(int.Parse(data["ArticleID"].ToString())),
|
||||
int.Parse(data["ID"].ToString()),
|
||||
int.Parse(data["Quantite"].ToString()),
|
||||
float.Parse(data["PrixHTVA"].ToString())));
|
||||
|
||||
|
||||
}
|
||||
CommandSQL.Connection.Close();
|
||||
|
||||
return lstARt;
|
||||
}
|
||||
public Panier LirePanier(int id)
|
||||
{
|
||||
Panier pret;
|
||||
|
||||
CommandSQL.CommandType = System.Data.CommandType.StoredProcedure;
|
||||
CommandSQL.CommandText = "LirePanier";
|
||||
CommandSQL.Parameters.AddWithValue("@ID", id);
|
||||
CommandSQL.Connection.Open();
|
||||
SqlDataReader data = CommandSQL.ExecuteReader();
|
||||
|
||||
if (data.Read())
|
||||
{
|
||||
pret = new Panier(int.Parse(data["ID"].ToString()),
|
||||
new BDDAccesUtilisateur(base.SCHConnBDD).LireUtilisateur(int.Parse(data["UserId"].ToString())),
|
||||
data["Nom"].ToString(),
|
||||
(Panier.Type_E)int.Parse(data["Type"].ToString()),
|
||||
(Panier.Status_E)int.Parse(data["Status"].ToString()),
|
||||
DateTime.Parse(data["DateAchat"].ToString()),
|
||||
listeArticlePanier(id));
|
||||
CommandSQL.Connection.Close();
|
||||
return pret;
|
||||
}
|
||||
else
|
||||
{
|
||||
CommandSQL.Connection.Close();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
public void SuprimerArticlePanier(int id)
|
||||
{
|
||||
CommandSQL.Parameters.Clear();
|
||||
CommandSQL.CommandType = System.Data.CommandType.StoredProcedure;
|
||||
CommandSQL.CommandText = "SuprimerArticlePanier";
|
||||
CommandSQL.Parameters.AddWithValue("@ID", id);
|
||||
CommandSQL.Connection.Open();
|
||||
SqlDataReader data = CommandSQL.ExecuteReader();
|
||||
CommandSQL.Connection.Close();
|
||||
}
|
||||
public int AjouterArticlePanier(Panier.LSTArticle lstart, int idPanier)
|
||||
{
|
||||
CommandSQL.CommandType = System.Data.CommandType.StoredProcedure;
|
||||
CommandSQL.CommandText = "AjoutArticleDansPanier";
|
||||
CommandSQL.Parameters.Clear();
|
||||
CommandSQL.Parameters.Add("ID", SqlDbType.Int);
|
||||
Direction("ID", ParameterDirection.Output);
|
||||
CommandSQL.Parameters.AddWithValue("@IDArt", lstart.article.Designation);
|
||||
CommandSQL.Parameters.AddWithValue("@IDPanier", idPanier);
|
||||
CommandSQL.Parameters.AddWithValue("@Quantite", lstart.quantitee);
|
||||
CommandSQL.Parameters.AddWithValue("@PrixHTVA", lstart.prixHTVAPC);
|
||||
CommandSQL.Connection.Open();
|
||||
SqlDataReader data = CommandSQL.ExecuteReader();
|
||||
int a = int.Parse(CommandSQL.Parameters["ID"].Value.ToString());
|
||||
lstart.id = a;
|
||||
CommandSQL.Connection.Close();
|
||||
return a;
|
||||
}
|
||||
public int CreerPanier(Panier panier)
|
||||
{
|
||||
CommandSQL.CommandType = System.Data.CommandType.StoredProcedure;
|
||||
CommandSQL.CommandText = "AjoutArticleDansPanier";
|
||||
CommandSQL.Parameters.Clear();
|
||||
CommandSQL.Parameters.Add("ID", SqlDbType.Int);
|
||||
Direction("ID", ParameterDirection.Output);
|
||||
CommandSQL.Parameters.AddWithValue("@UserID", panier.user.ID);
|
||||
CommandSQL.Parameters.AddWithValue("@Nom", panier.nomPanier);
|
||||
CommandSQL.Parameters.AddWithValue("@type", (int)panier.type);
|
||||
CommandSQL.Connection.Open();
|
||||
SqlDataReader data = CommandSQL.ExecuteReader();
|
||||
int a = int.Parse(CommandSQL.Parameters["ID"].Value.ToString());
|
||||
panier.idPanier = a;
|
||||
CommandSQL.Connection.Close();
|
||||
return a;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,152 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
namespace GestionDeCommerceInfoClasseBDDNCouches.DataLayer
|
||||
{
|
||||
public class BDDAccesUtilisateur : BDDAccesBase
|
||||
{
|
||||
//private string sCHConnBDD;
|
||||
//public string SCHConnBDD { get => sCHConnBDD; set => sCHConnBDD = value; }
|
||||
|
||||
//private SqlCommand CommandSQL = new SqlCommand();
|
||||
|
||||
public BDDAccesUtilisateur(string schConn) : base(schConn)
|
||||
{
|
||||
//SCHConnBDD = schConn;
|
||||
//CommandSQL.Connection = new SqlConnection(schConn);
|
||||
}
|
||||
public List<Utilisateur> ListUtilisateurs(Utilisateur.Tri_E tri)
|
||||
{
|
||||
CommandSQL.Parameters.Clear();
|
||||
List<Utilisateur> lstArt = new List<Utilisateur>();
|
||||
CommandSQL.CommandType = System.Data.CommandType.StoredProcedure;
|
||||
CommandSQL.CommandText = "ListUtilisateurs";
|
||||
CommandSQL.Parameters.AddWithValue("@ID", Convert.DBNull);
|
||||
if(tri == Utilisateur.Tri_E.NONE)
|
||||
CommandSQL.Parameters.AddWithValue("@TRI", Convert.DBNull);
|
||||
else
|
||||
CommandSQL.Parameters.AddWithValue("@TRI", tri.ToString());
|
||||
CommandSQL.Connection.Open();
|
||||
SqlDataReader data = CommandSQL.ExecuteReader();
|
||||
while (data.Read())
|
||||
{
|
||||
//Console.WriteLine(data.ToString()+"\n"+ (data["ID"].ToString()) +"__"+ (data["PrixHTVA"].ToString())+"__"+(data["Stock"].ToString())+"__"+ ((data["Visible"].ToString()))+"__"+ ((data["Actif"].ToString())));
|
||||
//public Utilisateur(int id, string nom, string pre, string addr, string nCompte, string email, Type_E type)
|
||||
|
||||
lstArt.Add(new Utilisateur(int.Parse(data["ID"].ToString()), data["Nom"].ToString(),
|
||||
(data["Prenom"].ToString()),
|
||||
(data["Adresse"].ToString()),
|
||||
(data["NCompte"].ToString()),
|
||||
(data["email"].ToString()),
|
||||
(Utilisateur.Type_E)Enum.Parse(typeof(Utilisateur.Type_E), data["type"].ToString())));
|
||||
}
|
||||
CommandSQL.Connection.Close();
|
||||
return lstArt;
|
||||
}
|
||||
public Utilisateur LireUtilisateur(int id)
|
||||
{
|
||||
CommandSQL.Parameters.Clear();
|
||||
Utilisateur lstArt;
|
||||
CommandSQL.CommandType = System.Data.CommandType.StoredProcedure;
|
||||
CommandSQL.CommandText = "ListUtilisateurs";
|
||||
CommandSQL.Parameters.AddWithValue("@ID", id);
|
||||
CommandSQL.Parameters.AddWithValue("@TRI", Convert.DBNull);
|
||||
CommandSQL.Connection.Open();
|
||||
SqlDataReader data = CommandSQL.ExecuteReader();
|
||||
|
||||
if (data.Read())
|
||||
{
|
||||
//Console.WriteLine(data.ToString()+"\n"+ (data["ID"].ToString()) +"__"+ (data["PrixHTVA"].ToString())+"__"+(data["Stock"].ToString())+"__"+ ((data["Visible"].ToString()))+"__"+ ((data["Actif"].ToString())));
|
||||
lstArt = new Utilisateur(int.Parse(data["ID"].ToString()), data["Nom"].ToString(),
|
||||
(data["Prenom"].ToString()),
|
||||
(data["Adresse"].ToString()),
|
||||
(data["NCompte"].ToString()),
|
||||
(data["email"].ToString()),
|
||||
(Utilisateur.Type_E)Enum.Parse(typeof(Utilisateur.Type_E), data["type"].ToString()));
|
||||
CommandSQL.Connection.Close();
|
||||
return lstArt;
|
||||
}
|
||||
else
|
||||
{
|
||||
CommandSQL.Connection.Close();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
public int AjouterUtilisateur(Utilisateur utilisateur)
|
||||
{
|
||||
CommandSQL.Parameters.Clear();
|
||||
CommandSQL.CommandType = System.Data.CommandType.StoredProcedure;
|
||||
CommandSQL.CommandText = "AjoutUtilisateur";
|
||||
CommandSQL.Parameters.Clear();
|
||||
CommandSQL.Parameters.Add("ID", SqlDbType.Int);
|
||||
Direction("ID", ParameterDirection.Output);
|
||||
CommandSQL.Parameters.AddWithValue("@Nom", utilisateur.Nom);
|
||||
CommandSQL.Parameters.AddWithValue("@Prenom", utilisateur.Prenom);
|
||||
CommandSQL.Parameters.AddWithValue("@Adresse", utilisateur.Adresse);
|
||||
CommandSQL.Parameters.AddWithValue("@NCompte", utilisateur.NCompte);
|
||||
CommandSQL.Parameters.AddWithValue("@DateDeNaisance", (utilisateur.DateDeNaisance == null)? Convert.DBNull : utilisateur.DateDeNaisance.Value);
|
||||
CommandSQL.Parameters.AddWithValue("@email", utilisateur.Email);
|
||||
CommandSQL.Parameters.AddWithValue("@Type", (int)utilisateur.TypeUtilisateur);
|
||||
CommandSQL.Connection.Open();
|
||||
SqlDataReader data = CommandSQL.ExecuteReader();
|
||||
int a = int.Parse(CommandSQL.Parameters["ID"].Value.ToString());
|
||||
utilisateur.ID = a;
|
||||
CommandSQL.Connection.Close();
|
||||
return a;
|
||||
}
|
||||
public void AjouterUtilisateurs(List<Utilisateur> utilisateurs)
|
||||
{
|
||||
foreach (Utilisateur utilisateur in utilisateurs)
|
||||
AjouterUtilisateur(utilisateur);
|
||||
}
|
||||
public void ModifUtilisateur(Utilisateur utilisateur)
|
||||
{
|
||||
CommandSQL.Parameters.Clear();
|
||||
CommandSQL.CommandType = System.Data.CommandType.StoredProcedure;
|
||||
CommandSQL.CommandText = "ModifUtilisateur";
|
||||
CommandSQL.Parameters.AddWithValue("@ID", utilisateur.ID);
|
||||
CommandSQL.Parameters.AddWithValue("@Nom", utilisateur.Nom);
|
||||
CommandSQL.Parameters.AddWithValue("@Prenom", utilisateur.Prenom);
|
||||
CommandSQL.Parameters.AddWithValue("@Adresse", utilisateur.Adresse);
|
||||
CommandSQL.Parameters.AddWithValue("@NCompte", utilisateur.NCompte);
|
||||
CommandSQL.Parameters.AddWithValue("@DateDeNaisance", (utilisateur.DateDeNaisance == null) ? Convert.DBNull : utilisateur.DateDeNaisance.Value);
|
||||
CommandSQL.Parameters.AddWithValue("@email", utilisateur.Email);
|
||||
CommandSQL.Parameters.AddWithValue("@Type", ((int)utilisateur.TypeUtilisateur));
|
||||
CommandSQL.Parameters.AddWithValue("@Actif", true);
|
||||
CommandSQL.Connection.Open();
|
||||
SqlDataReader data = CommandSQL.ExecuteReader();
|
||||
CommandSQL.Connection.Close();
|
||||
}
|
||||
public void ModifUtilisateurs(List<Utilisateur> utilisateurs)
|
||||
{
|
||||
foreach (Utilisateur utilisateur in utilisateurs)
|
||||
ModifUtilisateur(utilisateur);
|
||||
}
|
||||
public void SuprimerUtilisateur(int id, bool definitivement)
|
||||
{
|
||||
CommandSQL.Parameters.Clear();
|
||||
CommandSQL.CommandType = System.Data.CommandType.StoredProcedure;
|
||||
CommandSQL.CommandText = "SuprimerUtilisateur";
|
||||
CommandSQL.Parameters.AddWithValue("@ID", id);
|
||||
CommandSQL.Parameters.AddWithValue("@definitivement", definitivement);
|
||||
CommandSQL.Connection.Open();
|
||||
SqlDataReader data = CommandSQL.ExecuteReader();
|
||||
CommandSQL.Connection.Close();
|
||||
}
|
||||
public void SuprimerUtilisateur(Utilisateur utilisateur, bool definitivement)
|
||||
{
|
||||
SuprimerUtilisateur(utilisateur.ID, definitivement);
|
||||
}
|
||||
public void SuprimerUtilisateur(List<Utilisateur> utilisateurs, bool definitivement)
|
||||
{
|
||||
foreach (Utilisateur utilisateur in utilisateurs)
|
||||
SuprimerUtilisateur(utilisateur.ID, definitivement);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user