private MSG tareas(Opcion opcion, Int32?id, Tuple <Boolean?, String> dpi, Tuple <Boolean?, String> nombre, Tuple <Boolean?, String> apellido, Tuple <Boolean?, DateTime?> fecha_nacimiento, Tuple <Boolean?, Int32?> estado, Tuple <Boolean?, Int32?> rol, Tuple <Boolean?, Int32?> carne, Tuple <Boolean?, String> foto, Tuple <Boolean?, Int32?> usuario_id, Int32 id_responsable) { try { var rem = REM.sp_accion_bombero(opcion, id, dpi, nombre, apellido, fecha_nacimiento, estado, rol, carne, foto, usuario_id, id_responsable); return(mensajePorResolucion(rem)); } catch (MySqlException ex) { Debug.WriteLine("Error> " + ex.Number); var mysqlErrors = MySqlErrores(ex); switch (mysqlErrors) { case ErrorMySql.SinConexion: return((MSG)Mensaje.SinConexion); case ErrorMySql.ElementoDuplicado: return(new MSG("El numero DPI del bombero ya esta ingresado.")); } } return((MSG)Mensaje.NoPasara); }