Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
        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);
        }
Beispiel #5
0
        public int CountAccepterArtWorAll()
        {
            Ioeuvredeclarationservice oeuvredeclarationservice = new oeuvredeclarationservice();
            int acc = oeuvredeclarationservice.GetAll().Where(x => x.etat == "Accepter").Count();

            return(acc);
        }