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

            return(acc);
        }