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

            return(acc);
        }