public ActionResult Create(activitym collection)
        {
            activity c = new activity();


            c.id                  = collection.id;
            c.nom                 = collection.nom;
            c.description         = collection.description;
            c.NombreHeuresEstimer = collection.NombreHeuresEstimer;;

            c.statut = collection.statut;

            c.projet_id   = collection.projet_id;
            c.user_idUser = 1;


            //   c.mailClient = collection.mailClient;



            sc.Add(c);
            sc.Commit();
            //   return View();
            return(RedirectToAction("Index"));
        }
        public ActionResult EditEmploye(int id, activitym ord)
        {
            try
            {
                activity order = sc.GetById(id);
                //  order.nom = ord.nom;
                //  order.description = ord.description;
                // order.mailClient = ord.mailClient;
                order.datedebut = ord.datedebut;
                order.dateFin   = ord.dateFin;
                order.NombreHeuresTravailler = ord.NombreHeuresTravailler;
                order.statut = ord.statut;
                //  order.projet_id = ord.projet_id;

                //    order.NombreHeuresTravailler = ViewBag.total2;



                sc.Update(order);
                sc.Commit();


                // TODO: Add update logic here

                return(RedirectToAction("IndexEmploye"));
            }
            catch
            {
                return(View());
            }
        }
        // GET: Activity/Details/5
        public ActionResult Details(int id)
        {
            var c = sc.GetById(id);

            activitym d = new activitym();

            d.id                     = c.id;
            d.nom                    = c.nom;
            d.description            = c.description;
            d.statut                 = c.statut;
            d.NombreHeuresTravailler = c.NombreHeuresTravailler;
            d.NombreHeuresEstimer    = c.NombreHeuresEstimer;
            // d.NombreHeuresEnRetard = c.NombreHeuresEnRetard;


            return(View(d));
        }