public bool ActualizarEmpleado(int IdEmpleado, int IdTipoIdentificacion, string Identificacion, string Nombre, string Apellido1, string Apellido2, string Direccion, string fechaNacimiento, string departamento, string correo, string telefono, char provincia, string canton, string distrito , string fechaEntrada, string fechaSalida, bool Estado, bool estadoEmpleado) { try { int respuesta = 1; DatosDataContext dc = new DatosDataContext(); respuesta = dc.ActualizarEmpleado(IdEmpleado, IdTipoIdentificacion, Identificacion, Nombre, Apellido1, Apellido2, Direccion, fechaNacimiento, departamento, correo, telefono, provincia, canton, distrito, fechaEntrada, fechaSalida, Estado, estadoEmpleado); if (respuesta == 0) { return(true); } else { return(false); } } catch (Exception ex) { return(false); } }