Esempio n. 1
0
        public async Task <IActionResult> Grabar(string nombre
                                                 , long salario
                                                 , int edad
                                                 , string perfil)
        {
            EmployeeBO employee = new EmployeeBO();

            employee.edad    = edad;
            employee.salario = salario;
            employee.nombre  = nombre;
            employee.perfil  = perfil;

            EmployeeBO emp = await EmpService.Insertar(employee);

            return(RedirectToAction("Index"));
        }