public ActionResult Index()
        {
            Repository  _repository = new Repository();
            ViewModelVM vm          = new ViewModelVM();

            vm.allTravail = _repository.getListTravail();
            vm.allEmploye = _repository.getListEmploye();
            return(View(vm));
        }
        public ActionResult modifierTravail()
        {
            String      id          = Convert.ToString(Request.Form["id"]);
            Repository  _repository = new Repository();
            ViewModelVM vm          = new ViewModelVM();

            vm.allTravail    = _repository.getOnTravail(id);
            vm.allEntreprise = _repository.getListEntreprise();
            return(View(vm));
        }
        public ActionResult getInfoAndListAnnee()
        {
            String      nomEntreprise = Convert.ToString(Request.Form["nomEntreprise"]);
            Repository  _repository   = new Repository();
            ViewModelVM vm            = new ViewModelVM();

            vm.allEntreprise = _repository.getOneEntreprise(nomEntreprise);
            vm.allEmploye    = _repository.getListEmpForEnt(nomEntreprise);
            return(View(vm));
        }
        public ActionResult imprimerAction()
        {
            String      nomEntreprise = Convert.ToString(Request.QueryString["nomEntreprise"]);
            Repository  _repository   = new Repository();
            ViewModelVM vm            = new ViewModelVM();

            vm.allEntreprise = _repository.getOneEntreprise(nomEntreprise);
            vm.allEmploye    = _repository.getListEmpForEnt(nomEntreprise);
            Response.Write(nomEntreprise);
            return(View(vm));
        }
        public ActionResult afficheEntreDeux()
        {
            String      nomEntreprise = Convert.ToString(Request.Form["nomEntreprise"]);
            Repository  _repository   = new Repository();
            ViewModelVM vm            = new ViewModelVM();


            String   start = Convert.ToString(Request.Form["start"]);
            String   end   = Convert.ToString(Request.Form["end"]);
            DateTime sdate = Convert.ToDateTime(start);
            DateTime edate = Convert.ToDateTime(end);
            TimeSpan ts    = edate - sdate;
            int      days  = ts.Days;
            String   d     = days.ToString();

            vm.allEntreprise = _repository.getOneEntreprise(nomEntreprise);
            vm.allEmploye    = _repository.getListEmpForEntB(nomEntreprise, days);

            return(View(vm));
        }