Ejemplo n.º 1
0
 [HttpPost] //
 public ActionResult Edit()
 {
     ModelbussinessLogic.Employee emp = new ModelbussinessLogic.Employee();
     UpdateModel(emp);
     ModelbussinessLogic.EmployeeBussiness empB = new ModelbussinessLogic.EmployeeBussiness();
     empB.EditEmployee((ModelbussinessLogic.Employee)emp);
     return(View());
 }
Ejemplo n.º 2
0
 public ActionResult Create(ModelbussinessLogic.Employee emp)
 {
     ModelbussinessLogic.EmployeeBussiness empB = new ModelbussinessLogic.EmployeeBussiness();
     empB.AddEmployee((ModelbussinessLogic.Employee)emp);
     return(View());
 }