Exemplo n.º 1
0
 public AdminHomeController(IClient s0, IArticle s1, ICategorie s3, ICommande s2)
 {
     this.s0                = s0;
     this.s1                = s1;
     this.s2                = s2;
     this.s3                = s3;
     ViewBag.categories     = s3.getAllCategorie();
     ViewBag.articles       = s1.getAllArticle();
     ViewBag.TopSArticle    = s1.getTopSeeledarticle();
     ViewBag.num            = s2.countCommandeClient(9999);
     ViewBag.charts         = s2.getCommandeById(9999);
     ViewBag.totalcart      = s2.totalClient(9999);
     ViewBag.LastCommande   = s2.getLastCommande();
     ViewBag.nbclient       = s0.countClients();
     ViewBag.nbarticlevendu = s1.nbarticleVendu();
     ViewBag.thisweek       = s2.thisweek();
     ViewBag.totalearn      = s2.totalearn();
 }