Esempio n. 1
0
 public AnnonceController(IWebHostEnvironment env, IFavoris favoris, IUpload uploadService, ILogin login)
 {
     _env            = env;
     _favorisService = favoris;
     _uploadService  = uploadService;
     _login          = login;
 }
Esempio n. 2
0
 public HomeController(IArticle s1, ICommande s2, ICategorie s3, IFavoris s4)
 {
     this.s1              = s1;
     this.s2              = s2;
     this.s3              = s3;
     this.s4              = s4;
     ViewBag.categories   = s3.getAllCategorie();
     ViewBag.articles     = s1.getAllArticle();
     ViewBag.TopSArticle  = s1.getTopSeeledarticle();
     ViewBag.sessionkayna = true;
 }
Esempio n. 3
0
        public ProductController(IArticle s1, ICommande s2, ICategorie s3, IFavoris s4, ICommentaire s5)
        {
            this.s1 = s1;
            this.s2 = s2;
            this.s3 = s3;
            this.s4 = s4;
            this.s5 = s5;

            ViewBag.categories = s3.getAllCategorie();

            ViewBag.sessionkayna = true;
        }
Esempio n. 4
0
        public LoginController(IClient s0, IArticle s1, ICommande s2, ICategorie s3, IFavoris s4)
        {
            this.s0             = s0;
            this.s1             = s1;
            this.s2             = s2;
            this.s3             = s3;
            this.s4             = s4;
            ViewBag.categories  = s3.getAllCategorie();
            ViewBag.articles    = s1.getAllArticle();
            ViewBag.TopSArticle = s1.getTopSeeledarticle();

            ViewBag.sessionkayna = false;
        }
Esempio n. 5
0
 public LangageController(IArticle s1, ICommande s2, ICategorie s3, IFavoris s4)
 {
     this.s1              = s1;
     this.s2              = s2;
     this.s3              = s3;
     this.s4              = s4;
     ViewBag.categories   = s3.getAllCategorie();
     ViewBag.articles     = s1.getAllArticle();
     ViewBag.TopSArticle  = s1.getTopSeeledarticle();
     ViewBag.num          = s2.countCommandeClient(9999);
     ViewBag.charts       = s2.getCommandeById(9999);
     ViewBag.favoris      = s4.getFavorisClient(9999);
     ViewBag.qtqfavoris   = s4.totalFavorisClient(9999);
     ViewBag.totalcart    = s2.totalClient(9999);
     ViewBag.LastCommande = s2.getLastCommande();
 }