Пример #1
0
        public ActionResult Create(RessourceModel cm)
        {
            Ressource c = new Ressource();

            c.id       = cm.id;
            c.nom      = cm.nom;
            c.quantite = cm.quantite;
            c.type     = cm.type;
            c.etat     = cm.etat;



            cs.Add(c);
            cs.Commit();
            return(View("Index", "~/Views/Shared/_CustomerLayout.cshtml"));
        }