public int CountSupprimerArtWork(int u) { Ioeuvredeclarationservice oeuvredeclarationservice = new oeuvredeclarationservice(); int Supprimer = oeuvredeclarationservice.GetAll().Where(x => x.etat == "Supprimer" && x.user_ID == u).Count(); return(Supprimer); }
public int CountEnAttenteArtWork(int u) { Ioeuvredeclarationservice oeuvredeclarationservice = new oeuvredeclarationservice(); int EnAttente = oeuvredeclarationservice.GetAll().Where(x => x.etat == "EnAttente" && x.user_ID == u).Count(); return(EnAttente); }
public int CountAllArtWork(int u) { Ioeuvredeclarationservice oeuvredeclarationservice = new oeuvredeclarationservice(); int all = oeuvredeclarationservice.GetAll().Where(x => x.user_ID == u).GroupBy(x => x.Categorie).Count(); return(all); }
public int CountRefuserArtWork(int u) { Ioeuvredeclarationservice oeuvredeclarationservice = new oeuvredeclarationservice(); int simple = oeuvredeclarationservice.GetAll().Where(x => x.etat == "Refuser" && x.user_ID == u).Count(); return(simple); }
public int CountAccepterArtWorAll() { Ioeuvredeclarationservice oeuvredeclarationservice = new oeuvredeclarationservice(); int acc = oeuvredeclarationservice.GetAll().Where(x => x.etat == "Accepter").Count(); return(acc); }