Ejemplo n.º 1
0
 // GET: Employes/Details/5
 public ActionResult Details(int id)
 {
     try
     {
         return(View("Details", manager.GetEmploye(id)));
     }
     catch (EntityNotFoundException)
     {
         return(View("Errors/Erreur404"));
     }
 }
Ejemplo n.º 2
0
        public void TestGetByIdEmployee()
        {
            Employe emp = manager.GetEmploye(1);

            Assert.IsNotNull(emp);
            Assert.IsInstanceOfType(emp, typeof(Employe));
        }