Пример #1
0
        // GET: Ressource
        public ActionResult Index()
        {
            List <RessourceModel> lc = new List <RessourceModel>();

            foreach (var cm in cs.GetAll())
            {
                RessourceModel c = new RessourceModel();
                c.id = cm.id;

                c.nom = cm.nom;

                c.type     = cm.type;
                c.quantite = cm.quantite;
                c.etat     = cm.etat;
                lc.Add(c);
            }
            return(View(lc));
        }
Пример #2
0
        // GET: Tache/AjoutRessource
        public ActionResult AjoutRessource()
        {
            ViewBag.Ressource = Rs.GetAll();

            return(View());
        }