// GET: stat
        public ActionResult Index()
        {
            int nombreResource = ss.nbResource();

            ViewBag.nombreResource = nombreResource;
            int nbUsers = ss.nbUsers();

            ViewBag.nbUsers = nbUsers;
            int nbprojects = ss.nbProjects();

            ViewBag.nbprojects = nbprojects;
            int nbreq = ss.nbRequests();

            ViewBag.nbreq = nbreq;
            int resAV = ss.GetMany(a => a.ressourceStates == 0).ToList().Count();

            ViewBag.resAv = resAV;
            int clients = ss.nbclients();

            ViewBag.clients = clients;



            return(View());
        }
Пример #2
0
 public IHttpActionResult nbRessources()
 {
     return(Json(ss.nbResource()));
 }