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

            return(acc);
        }