Пример #1
0
        public ActionResult AltaEmpleado(FormCollection collection)
        {
            AdministracionDatos ad  = new AdministracionDatos();
            Persona             emp = new Persona
            {
                NIF       = collection["NIF"],
                Nombre    = collection["nombre"],
                Apellidos = collection["apellidos"],
                Telefono  = collection["telefono"],
                Direccion = collection["direccion"],
                Email     = collection["email"]
            };

            ad.AltaEmpleados(emp);
            return(RedirectToAction("Index"));
        }