Exemplo n.º 1
0
 public Employe(DAL.Employe employe)
 {
     this.Nom        = employe.Nom;
     this.Prenom     = employe.Prenom;
     this.Service    = employe.Service;
     this.Id_Employe = employe.Id_Employe;
     this.Metier     = employe.Metier;
     this.LinkedIn   = employe.LienLinkedin;
     this.Entreprise = employe.Entreprise;
     this.DateArrive = employe.DateArrive;
     if (employe.DateDepart != null)
     {
         this.DateDepart = employe.DateDepart.Value;
     }
     this.AdresseMail      = employe.AdresseMail;
     this.Actif            = employe.Actif;
     this.EstAdmin         = employe.EstAdmin;
     this.EstChefDeService = employe.EstChefDeService;
     this.EstInterne       = employe.EstInterne;
 }
Exemplo n.º 2
0
 public ActionResult Create(DAL.Employe employe)
 {
     DAL.Employe.InsertEmploye(employe);
     return(RedirectToAction("index"));
 }
Exemplo n.º 3
0
 public ActionResult Edite(DAL.Employe employe)
 {
     DAL.Employe.UpdateEmploye(employe);
     return(RedirectToAction("index"));
 }